CollectionTypeMismatchException class

Thrown when a collection type mismatch occurs.

This exception indicates that a collection was requested with a different type than it was originally created with.

Inheritance
Annotations
  • @immutable

Constructors

CollectionTypeMismatchException({required String collectionName, required Type expectedType, required Type actualType})
Creates a new CollectionTypeMismatchException.

Properties

actualType → Type
The actual type.
final
cause → Object?
The underlying cause of this exception, if any.
finalinherited
collectionName → String
The name of the collection.
final
expectedType → Type
The expected type.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A human-readable description of the error.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace at the point where the exception was thrown.
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