MssqlCardinalityException class

Raised when single or singleOrNull saw more than one row.

Separate from MssqlRowNotFoundException because the two mean opposite things about the caller's filter, and an application that recovers from one rarely wants to recover from the other.

Inheritance

Constructors

MssqlCardinalityException(String table, String method, int seen)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A sentence naming what happened and, where there is one, what to do.
no setteroverride
method String
The terminal that made the promise: single, singleOrNull, …
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seen int
How many rows were seen before giving up. The reader stops early, so this is a lower bound, not the full count.
final
table String
final

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