DataSourceException class abstract base

Represents a low-level exception thrown by the Data Source layer (e.g., HTTP client, local storage, or API wrapper).

These errors contain technical details necessary for debugging and mapping to higher-level RepositoryError or Failure types.

Inheritance
Implemented types

Constructors

DataSourceException({Map<String, String>? requestHeaders, Uri? requestUri, Object? requestBody, String? message})
Represents a low-level exception thrown by the Data Source layer (e.g., HTTP client, local storage, or API wrapper).
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String?
A human-readable message describing the issue or the cause of the error.
finalinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
requestBody → Object?
The body of the request that caused the exception (e.g., for logging)
final
requestHeaders → Map<String, String>?
The HTTP headers used in the failed request.
final
requestUri → Uri?
The URI targeted by the failed request
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
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