ViesError class sealed
Base class for every error raised by the vies package.
Implements Exception so it can be caught with on Exception and so it
participates correctly in Dart's error semantics. AssertionError is
reserved for debug-mode invariants, so it is deliberately not used here.
Two concrete subtypes exist:
- ViesClientError - the request never reached VIES, or VIES returned a logically negative answer (e.g. invalid VAT number).
- ViesServerError - VIES, the network, or the transport itself failed.
- Implemented types
- Implementers
Properties
- code → ViesErrorCode
-
Strongly-typed error code.
final
- 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 setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
Stable type discriminator used in JSON output.
no setter
- viesResponse → String?
-
Raw text returned (or synthesised) for this error - typically the
user-facing message.
final
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.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited