SEP30UnknownResponseException class

Exception thrown for unknown HTTP errors.

Represents HTTP errors not covered by other exception types. Contains the raw HTTP status code and response body for debugging.

Example:

try {
  await recovery.registerAccount(address, request, jwt);
} on SEP30UnknownResponseException catch (e) {
  print('HTTP ${e.code}: ${e.body}');
}
Implemented types

Constructors

SEP30UnknownResponseException(int code, String body)
Creates a SEP30UnknownResponseException with HTTP details.

Properties

body ↔ String
Raw response body.
getter/setter pair
code ↔ int
HTTP status code.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Returns error message with HTTP status code and response body.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited