trait
Illuminate
/
Foundation
/
Testing
/
Concerns
/
InteractsWithExceptionHandling
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
InteractsWithExceptionHandling
Properties
protected
$originalExceptionHandler ExceptionHandler |null
The original exception handler.
Default: null
Methods
protected
withExceptionHandling ( ) : $this
Restore exception handling.
protected
handleExceptions ( array $exceptions ) : $this
Only handle the given exceptions via the exception handler.
Parameters
- $exceptions array
protected
handleValidationExceptions ( ) : $this
Only handle validation exceptions via the exception handler.
protected
withoutExceptionHandling ( array $except ) : $this
Disable exception handling for the test.
Parameters
- $except array