MastodonApiException class

Exception representing an HTTP response error.

Holds the HTTP status code in statusCode and the server-returned message in message.

Inheritance
Implementers

Constructors

MastodonApiException({required int statusCode, required String message, String? endpoint, Object? raw})
const

Properties

endpoint String?
API endpoint where the error occurred.
final
hashCode int
The hash code for this object.
no setterinherited
message String
finalinherited
raw Object?
Original exception or error object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode 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