ViesClientError class final

Errors caused by the input or the parsed response (e.g. invalid VAT number, malformed SOAP body).

Inheritance

Constructors

ViesClientError({required ViesErrorCode code, String? message, String? viesResponse})
Creates a client-side error carrying ViesError.code.
const

Properties

code → ViesErrorCode
Strongly-typed error code.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
Effective message: the explicit one if supplied, otherwise the canonical message attached to code.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
Stable type discriminator used in JSON output.
no setteroverride
viesResponse → String?
Raw text returned (or synthesised) for this error - typically the user-facing message.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
JSON representation, suitable for logging or persistence.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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