Handler
class Handler implements ExceptionHandler (View source)
Properties
protected LoggerInterface | $log | The log implementation. | |
protected array | $dontReport | A list of the exception types that should not be reported. |
Methods
void | __construct(LoggerInterface $log) 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. | |
Response | render(Request $request, Exception $e) Render an exception into a response. | |
Response | toIlluminateResponse(Response $response, Exception $e) Map exception into an illuminate response. | |
void | renderForConsole(OutputInterface $output, Exception $e) Render an exception to the console. | |
Response | renderHttpException(HttpException $e) Render the given HttpException. | |
Response | convertExceptionToResponse(Exception $e) Create a Symfony response for the given exception. | |
Response | unauthenticated(Request $request, AuthenticationException $e) Convert an authentication exception into an unauthenticated response. | |
string | decorate(string $content, string $css) Get the html response content. | |
bool | isHttpException(Exception $e) Determine if the given exception is an HTTP exception. |
Details
void __construct(LoggerInterface $log)
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 Response toIlluminateResponse(Response $response, Exception $e)
Map exception into an illuminate response.
void renderForConsole(OutputInterface $output, Exception $e)
Render an exception to the console.
protected Response renderHttpException(HttpException $e)
Render the given HttpException.
protected Response convertExceptionToResponse(Exception $e)
Create a Symfony response for the given exception.
protected Response unauthenticated(Request $request, AuthenticationException $e)
Convert an authentication exception into an unauthenticated response.
protected string decorate(string $content, string $css)
Get the html response content.
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.2/Illuminate/Foundation/Exceptions/Handler.html