RethrowExceptionHandler class
Mock implementation of ExceptionHandler that rethrows exceptions.
class RethrowExceptionHandler extends ExceptionHandler {
call(error, stack, [reason]){
throw "$error $reason \nORIGINAL STACKTRACE:\n $stack";
}
}
Extends
ExceptionHandler > RethrowExceptionHandler
Methods
dynamic call(error, stack, [reason]) #
Delegate uncaught exception for central error handling.
- error The error which was caught.
- stack The stacktrace.
- reason Optional contextual information for the error.
docs inherited from ExceptionHandler
call(error, stack, [reason]){
throw "$error $reason \nORIGINAL STACKTRACE:\n $stack";
}