ValidationException class

Derived exception class that represents any validation error

Inheritance

Constructors

ValidationException({bool silent = false, List<String> messages = const []})
ValidationException.multipleFields({bool silent = false, Map<String, List<String>>? validationMessages = const {}})
Constructon for creating validation messages list separated by property

Properties

hashCode int
The hash code for this object.
no setterinherited
messages List<String>
List of error messages
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
silent bool
Flag that represent if the exception should be silent
getter/setter pairinherited
validationMessages Map<String, List<String>>?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Method to be called in debugging mode to check the contents of the exception
override

Operators

operator ==(Object other) bool
The equality operator.
inherited