ValidationException class
Occurs when user-provided data is invalid.
Constructors
-
ValidationException(String message, {Iterable<
String> errors = const []}) - A list of errors that resulted in the given data being marked invalid. A descriptive message describing the error.
Properties
- error ↔ dynamic
-
The error throw by exception.
getter/setter pairinherited
-
errors
→ List<
String> -
A list of errors that occurred when this exception was thrown.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
The cause of this exception.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace ↔ StackTrace?
-
The StackTrace associated with this error.
getter/setter pairinherited
- statusCode ↔ int
-
An HTTP status code this exception will throw.
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map -
inherited
-
toMap(
) → Map -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited