HttpError class

Represents an HTTP-related error that occurred during an operation.

Constructors

HttpError({required String message, int? code, dynamic data})
Creates an HttpError with a required message and optional code and data.

Properties

code → int?
An optional HTTP status code or a custom error code.
final
data → dynamic
Optional additional data related to the error, which can be of any type.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A descriptive message explaining the error.
final
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
A string representation of this object.
inherited

Operators

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