InvalidValueException<T> class

Exception thrown when a value is not within the related array of valid values.

Implemented types

Constructors

InvalidValueException([String? message])
Creates a InvalidValueException object.
const
InvalidValueException.withValue(T? value, List<T>? validValues, [String? message])
Creates a InvalidValueException object that includes the value that triggered this exception.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String?
The error message associated with this exception.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validValues List<T>?
All of the valid values.
final
value → T?
The value that caused this exception to be thrown.
final

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