ShorebirdException class

An exception that can be thrown by the user's code and will be caught by the exception handler middleware. Subclass this to create your own exceptions. All other exceptions will be caught and a generic 500 will be returned.

Implemented types

Constructors

ShorebirdException(String message, {int status = 500})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
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