LockallyException class

Typed error mapped from a non-2xx API response. The API returns RFC 7807 application/problem+json; the fields let callers branch on status/code and log requestId for support.

Implemented types

Constructors

LockallyException({required int status, required String message, String? code, String? requestId})
LockallyException.fromResponse({required int status, Object? body, String? requestId})
Parse a problem+json body (falls back to a generic message).
factory

Properties

code String?
final
hashCode int
The hash code for this object.
no setterinherited
isRetryable bool
no setter
message String
final
requestId 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