DartoError class
Wraps an unhandled exception caught during request processing.
Passed to the handler registered with Darto.onError.
app.onError((err, c) {
print(err.message);
print(err.stackTrace);
return c.internalError({'error': err.message});
});
Constructors
- DartoError(Object cause, StackTrace stackTrace)
Properties
- cause → Object
-
The original thrown object.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Shorthand for
cause.toString().no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace
-
The stack trace captured at the throw site.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited