Flugg\Responder\Traits\HandlesApiErrors::transformException PHP Метод

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

Transform a Laravel exception into an API exception.
protected transformException ( Exception $exception ) : void
$exception Exception
Результат void
    protected function transformException(Exception $exception)
    {
        if (Request::capture()->wantsJson()) {
            $this->transformAuthException($exception);
            $this->transformEloquentException($exception);
            $this->transformValidationException($exception);
        }
    }