FrappeNetworkException class

Exception thrown when network operations fail

Inheritance

Constructors

FrappeNetworkException(String message, {String? code, dynamic originalError, StackTrace? originalStackTrace, Map<String, dynamic> context = const {}, int? statusCode, String? responseBody})
const

Properties

code String?
Machine-readable error code for programmatic handling
finalinherited
context Map<String, dynamic>
Additional context data about the error
finalinherited
friendlyMessage String
Creates a user-friendly error message
no setteroverride
hasCause bool
Whether this exception was caused by another exception
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isClientError bool
Whether this is a client error (4xx status code)
no setter
isServerError bool
Whether this is a server error (5xx status code)
no setter
isTimeout bool
Whether this is a timeout error
no setter
message String
Human-readable error message
finalinherited
originalError → dynamic
Original error that caused this exception (if any)
finalinherited
originalStackTrace StackTrace?
Stack trace from the original error (if any)
finalinherited
responseBody String?
Response body (if available)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code (if applicable)
final

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