ShrtnrError class
Thrown by ShrtnrClient when the API returns a 4xx/5xx response or when a network error prevents the request from completing.
Mirrors the ShrtnrError class from the TypeScript and Python SDKs.
- Implemented types
Constructors
- ShrtnrError(int status, String serverMessage)
-
Creates an error from an HTTP status and a server-provided message.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverMessage → String
-
The
errorstring from the JSON response body, or a fallback description for network errors and responses without a parseable body.final - status → int
-
HTTP status code from the failing response, or 0 for network errors.
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