ApiErrorResponse class

A normalized API error returned by ApiClient. Distinct from FormbricksError because the API layer preserves the raw server code string (which may be wider than FormbricksErrorCode).

Constructors

ApiErrorResponse({required String code, required int status, required String message, Uri? url, Map<String, Object?>? details, String? responseMessage})
Creates an API error response.
const

Properties

code → String
The server-supplied (or normalized) error code, e.g. forbidden, network_error.
final
details → Map<String, Object?>?
Optional structured error details from the server.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A human-readable description.
final
responseMessage → String?
The raw message returned by the server, when present.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int
The HTTP status code (or 500 when unknown).
final
url → Uri?
The endpoint that failed, when known.
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