ForeignKeyViolationException class

A FOREIGN KEY constraint was violated — referencing a missing row, or deleting a row that is still referenced. Typically mapped to HTTP 409 Conflict or 422.

Inheritance

Constructors

ForeignKeyViolationException(String message, {Object? cause})
const

Properties

cause → Object?
The underlying driver exception, when available.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable description of what failed.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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