Handler
class Handler implements ExceptionHandler (View source)
Properties
| protected Container | $container | The container implementation. | |
| protected array | $dontReport | A list of the exception types that are not reported. | |
| protected array | $internalDontReport | A list of the internal exception types that should not be reported. | |
| protected array | $dontFlash | A list of the inputs that are never flashed for validation exceptions. | 
Methods
| void |  __construct(Container $container)  Create a new exception handler instance.  |  |
| void |  report(Exception $e)  Report or log an exception.  |  |
| bool |  shouldReport(Exception $e)  Determine if the exception should be reported.  |  |
| bool |  shouldntReport(Exception $e)  Determine if the exception is in the "do not report" list.  |  |
| array |  context()  Get the default context variables for logging.  |  |
| Response |  render(Request $request, Exception $e)  Render an exception into a response.  |  |
| Exception |  prepareException(Exception $e)  Prepare exception for rendering.  |  |
| Response |  unauthenticated(Request $request, AuthenticationException $exception)  Convert an authentication exception into a response.  |  |
| Response |  convertValidationExceptionToResponse(ValidationException $e, Request $request)  Create a response object from the given validation exception.  |  |
| Response |  invalid(Request $request, ValidationException $exception)  Convert a validation exception into a response.  |  |
| JsonResponse |  invalidJson(Request $request, ValidationException $exception)  Convert a validation exception into a JSON response.  |  |
| Response |  prepareResponse(Request $request, Exception $e)  Prepare a response for the given exception.  |  |
| Response |  convertExceptionToResponse(Exception $e)  Create a Symfony response for the given exception.  |  |
| string |  renderExceptionWithWhoops(Exception $e)  Render an exception to a string using "Whoops".  |  |
| string |  renderExceptionWithSymfony(Exception $e, bool $debug)  Render an exception to a string using Symfony.  |  |
| Handler |  whoopsHandler()  Get the Whoops handler for the application.  |  |
| Response |  renderHttpException(HttpException $e)  Render the given HttpException.  |  |
| Response |  toIlluminateResponse(Response $response, Exception $e)  Map the given exception into an Illuminate response.  |  |
| JsonResponse |  prepareJsonResponse(Request $request, Exception $e)  Prepare a JSON response for the given exception.  |  |
| array |  convertExceptionToArray(Exception $e)  Convert the given exception to an array.  |  |
| void |  renderForConsole(OutputInterface $output, Exception $e)  Render an exception to the console.  |  |
| bool |  isHttpException(Exception $e)  Determine if the given exception is an HTTP exception.  |  
Details
void __construct(Container $container)
Create a new exception handler instance.
void report(Exception $e)
Report or log an exception.
bool shouldReport(Exception $e)
Determine if the exception should be reported.
protected bool shouldntReport(Exception $e)
Determine if the exception is in the "do not report" list.
protected array context()
Get the default context variables for logging.
protected Response unauthenticated(Request $request, AuthenticationException $exception)
Convert an authentication exception into a response.
protected Response convertValidationExceptionToResponse(ValidationException $e, Request $request)
Create a response object from the given validation exception.
protected Response invalid(Request $request, ValidationException $exception)
Convert a validation exception into a response.
protected JsonResponse invalidJson(Request $request, ValidationException $exception)
Convert a validation exception into a JSON response.
protected Response prepareResponse(Request $request, Exception $e)
Prepare a response for the given exception.
protected Response convertExceptionToResponse(Exception $e)
Create a Symfony response for the given exception.
protected string renderExceptionWithWhoops(Exception $e)
Render an exception to a string using "Whoops".
protected string renderExceptionWithSymfony(Exception $e, bool $debug)
Render an exception to a string using Symfony.
protected Handler whoopsHandler()
Get the Whoops handler for the application.
protected Response renderHttpException(HttpException $e)
Render the given HttpException.
protected Response toIlluminateResponse(Response $response, Exception $e)
Map the given exception into an Illuminate response.
protected JsonResponse prepareJsonResponse(Request $request, Exception $e)
Prepare a JSON response for the given exception.
protected array convertExceptionToArray(Exception $e)
Convert the given exception to an array.
void renderForConsole(OutputInterface $output, Exception $e)
Render an exception to the console.
protected bool isHttpException(Exception $e)
Determine if the given exception is an HTTP exception.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.5/Illuminate/Foundation/Exceptions/Handler.html