ValidationException class
Validation exception for invalid input
- Inheritance
-
- Object
- VinculumException
- ValidationException
Constructors
-
ValidationException(String message, {int? statusCode, Map<
String, dynamic> ? details, Map<String, List< ? fields})String> > -
Creates a new ValidationException
const
-
ValidationException.fromJson(Map<
String, dynamic> json, {int? statusCode}) -
Creates a ValidationException from JSON
factory
Properties
- code → String?
-
Error code from the server
finalinherited
-
details
→ Map<
String, dynamic> ? -
Additional error details
finalinherited
-
fields
→ Map<
String, List< ?String> > -
Map of field names to validation errors
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRetryable → bool
-
Returns true if this is a retryable error
no setterinherited
- message → String
-
Error message
finalinherited
- requestId → String?
-
Request ID for tracking
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
HTTP status code (if applicable)
finalinherited
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