SqlException class final

A database failure with a driver-independent code.

Implemented types

Constructors

SqlException(SqlErrorCode code, String message, {String? constraint, Object? cause})
Creates a classified SQL failure.
const

Properties

cause → Object?
Original driver or codec failure, when available.
final
code → SqlErrorCode
Portable failure category.
final
constraint → String?
Database constraint name, when the driver can identify it.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable description without bound parameter values.
final
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited