MagentoException class
Exception thrown by Magento operations
- Implemented types
- Implementers
Constructors
-
MagentoException.new(String message, {String? code, int? statusCode, Map<
String, dynamic> ? details}) -
const
- MagentoException.apiError(String message, int statusCode)
-
Create exception for API errors
factory
- MagentoException.authenticationError(String message)
-
Create exception for authentication errors
factory
- MagentoException.fromDioException(dynamic dioException)
-
Create exception from Dio exception
factory
- MagentoException.networkError(String message)
-
Create exception for network errors
factory
- MagentoException.notFoundError(String message)
-
Create exception for not found errors
factory
Properties
- code → String?
-
final
-
details
→ Map<
String, dynamic> ? -
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isApiError → bool
-
Check if this is an API error
no setter
- isAuthenticationError → bool
-
Check if this is an authentication error
no setter
- isNetworkError → bool
-
Check if this is a network error
no setter
- message → String
-
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.
override