TryCatchHandler class
An Handler
wrapper which calls the wrapped handler and does
the following:
Constructors
-
TryCatchHandler(Handler wrapped, {Future<
Response> onError(dynamic, StackTrace)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onError
→ Future<
Response> Function(dynamic, StackTrace)? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wrapped → Handler
-
final
Methods
-
handle(
Request request) → Future< Response> -
Handles the
request
and returns aResponse
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited