InvalidUnionTypeException class
Thrown when an invalid union type value is detected.
An expression whose static type is a union type of the form
UnionK<X1, ... XK> and whose value does not have any of the types
X1 .. XK is an invalid union type value. This exception is used
to report that such a value has been encountered.
- Implemented types
Constructors
- InvalidUnionTypeException(String type, Object? value)
Properties
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