BaseException class

A base class for exceptions that may occur during HTTP requests/responses when using the RestApiClient.

This class encapsulates error messages, a silent flag, and details about the specific DioException that occurred, allowing for better error handling and debugging.

Implemented types
Implementers

Constructors

BaseException.new({bool silent = false, List<String> messages = const [], DioException? exception})
Creates a new instance of BaseException.

Properties

exception DioException?
An optional DioException that provides details about the original error thrown by the Dio HTTP client.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messages List<String>
A list of error messages associated with the exception.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silent bool
A flag indicating whether the exception should be silent or not.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the exception for debugging purposes.
override

Operators

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