ValidationException class

An exception thrown to indicate that a name fails the validation rules.

Inheritance

Constructors

ValidationException({required Object source, required String nameType, String message = ''})
Creates error containing the invalid nameType and a message that briefly describes the problem if provided.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the failure.
finalinherited
nameType String
Name of the invalid nameType if available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → dynamic
The actual source input which caused the error.
finalinherited
sourceAsString String
The string value from the name source input.
no setterinherited
type NameExceptionType
The name exception type.
finalinherited

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