ValidationException class

Exception thrown when input validation fails.

Carries a list of structured ValidationError instances for detailed reporting of individual validation failures.

Inheritance

Constructors

ValidationException(String message, {String? code, required List<ValidationError> errors, Map<String, dynamic>? details, StackTrace? stackTrace})
const

Properties

code → String?
Optional structured error code string (e.g. 'OPS-PIPE-001').
finalinherited
details → Map<String, dynamic>?
Optional details providing additional context.
finalinherited
errors → List<ValidationError>
Individual structured validation errors.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable error message.
finalinherited
retryable → bool
Whether the operation that caused this exception can be retried.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Optional stack trace captured at the point of error.
finalinherited
suggestedDelay → Duration
Suggested delay before retry. Returns Duration.zero for non-retryable.
no setteroverride

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