Exceptions
class Exceptions
Methods
Register a reportable callback.
Register a reportable callback.
Register a renderable callback.
Register a renderable callback.
Register a callback to prepare the final, rendered exception response.
Specify the callback that should be used to throttle reportable exceptions.
Set the log level for the given exception type.
Indicate that the given exception type should not be reported.
Indicate that the given exception type should stop job retries.
Register a callback to determine if an exception should not be reported.
Register a callback to determine if an exception should stop job retries.
Do not report duplicate exceptions.
Indicate that the given attributes should never be flashed to the session on validation errors.
Register the callable that determines if the exception handler response should be JSON.
Indicate that the given exception class should not be ignored.
Set the truncation length for request exception messages.
Disable truncation of request exception messages.
Details
at line 20
__construct(Handler $handler)
Create a new exception handling configuration instance.
at line 27
ReportableHandler
report(callable $using)
Register a reportable callback.
at line 35
ReportableHandler
reportable(callable $reportUsing)
Register a reportable callback.
at line 43
Exceptions
render(callable $using)
Register a renderable callback.
at line 53
Exceptions
renderable(callable $renderUsing)
Register a renderable callback.
at line 63
Exceptions
respond(callable $using)
Register a callback to prepare the final, rendered exception response.
at line 73
Exceptions
throttle(callable $throttleUsing)
Specify the callback that should be used to throttle reportable exceptions.
at line 85
Exceptions
map(Closure|string $from, Closure|string|null $to = null)
Register a new exception mapping.
at line 98
Exceptions
level(string $type, string $level)
Set the log level for the given exception type.
at line 108
Exceptions
context(Closure $contextCallback)
Register a closure that should be used to build exception context data.
at line 118
Exceptions
dontReport(array|string $class)
Indicate that the given exception type should not be reported.
at line 133
Exceptions
dontRetry(array|string $class)
Indicate that the given exception type should stop job retries.
Boot-only. The exception types persist on the shared handler and affect every subsequently failed job in the worker.
at line 147
Exceptions
dontReportWhen(Closure $dontReportWhen)
Register a callback to determine if an exception should not be reported.
at line 164
Exceptions
dontRetryWhen(Closure $dontRetryWhen)
Register a callback to determine if an exception should stop job retries.
Boot-only. The callback persists on the shared handler and is considered for every subsequently failed job in the worker.
at line 174
Exceptions
dontReportDuplicates()
Do not report duplicate exceptions.
at line 184
Exceptions
dontFlash(array|string $attributes)
Indicate that the given attributes should never be flashed to the session on validation errors.
at line 194
Exceptions
shouldRenderJsonWhen(callable $callback)
Register the callable that determines if the exception handler response should be JSON.
at line 206
Exceptions
stopIgnoring(array|string $class)
Indicate that the given exception class should not be ignored.
at line 216
Exceptions
truncateRequestExceptionsAt(int $length)
Set the truncation length for request exception messages.
at line 226
Exceptions
dontTruncateRequestExceptions()
Disable truncation of request exception messages.