InputException class

An exception thrown when a name source input is incorrect.

A Name is a name for this utility under certain criteria (i.e., 2+ chars), hence, a wrong input will cause this kind of exception. Another common reason may be a wrong key in a Json name parsing mechanism.

Keep in mind that this exception is different from a ValidationException.

Inheritance

Constructors

InputException({required Object source, String message = ''})
Creates a new InputException with an optional error message.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the failure.
finalinherited
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.
inherited

Operators

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