ValidationError class

Validation error (bad request, invalid payload, etc.).

These are typically non-retryable without fixing the payload.

Inheritance

Constructors

ValidationError(String message, {bool retryable = false, String? field})
Creates a ValidationError.
const

Properties

field String?
Field or path that failed validation, if applicable.
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable error message.
finalinherited
retryable bool
Whether this error is retryable.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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