NorbixError class

Base exception thrown by every Norbix call.

Use the typed subclasses (NorbixAuthError, NorbixNotFoundError, ...) when you want to react differently per HTTP status.

Implemented types
Implementers

Constructors

NorbixError({required String message, String code = 'NORBIX_ERROR', int status = 0, Map<String, dynamic> details = const {}})
const
NorbixError.fromHttp({required int status, required String message, required String code, Map<String, dynamic> details = const {}})
Construct the right typed subclass from an HTTP response. Used by the transport — you usually do not call this directly.
factory

Properties

code String
Norbix-specific error code (or NORBIX_HTTP_ERROR if the server did not provide one).
final
details Map<String, dynamic>
Full parsed response body (or transport context) for debugging.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable message extracted from the response body when possible.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
HTTP status code, or 0 for transport-level failures (DNS, timeout).
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.
inherited