PHP Трейт Flugg\Responder\Traits\HandlesApiErrors

Автор: Alexander Tømmerås ([email protected])
Показать файл Открыть проект

Защищенные методы

Метод Описание
renderApiError ( ApiException $exception ) : Illuminate\Http\JsonResponse Renders any API exception into a JSON error response.
transformAuthException ( Exception $exception ) : void Transform a Laravel auth exception into an API exception.
transformEloquentException ( Exception $exception ) : void Transform an Eloquent exception into an API exception.
transformException ( Exception $exception ) : void Transform a Laravel exception into an API exception.
transformValidationException ( Exception $exception ) : void Transform a Laravel validation exception into an API exception.

Описание методов

renderApiError() защищенный Метод

Renders any API exception into a JSON error response.
protected renderApiError ( ApiException $exception ) : Illuminate\Http\JsonResponse
$exception Flugg\Responder\Exceptions\Http\ApiException
Результат Illuminate\Http\JsonResponse

transformAuthException() защищенный Метод

Transform a Laravel auth exception into an API exception.
protected transformAuthException ( Exception $exception ) : void
$exception Exception
Результат void

transformEloquentException() защищенный Метод

Transform an Eloquent exception into an API exception.
protected transformEloquentException ( Exception $exception ) : void
$exception Exception
Результат void

transformException() защищенный Метод

Transform a Laravel exception into an API exception.
protected transformException ( Exception $exception ) : void
$exception Exception
Результат void

transformValidationException() защищенный Метод

Transform a Laravel validation exception into an API exception.
protected transformValidationException ( Exception $exception ) : void
$exception Exception
Результат void