MysqlFailure class final

A server-reported error. Numeric codes are preserved; SQLSTATE is not exposed by mysql_client_plus and is not guessed from the error message.

Implemented types

Constructors

MysqlFailure(MySQLServerException cause)
Wraps a server error without inferring SQLSTATE from its message.
const

Properties

cause → MySQLServerException
Original exception with the numeric code and server message.
final
code → int
Numeric MySQL or MariaDB server error code.
no setter
commitRejected → bool
Whether the error establishes that this COMMIT was rejected by the server.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
retryCommit → bool
Retry the same COMMIT only while the adapter confirms the transaction is active.
no setteroverride
retryTransaction → bool
Whether this failure can be considered for a complete transaction retry.
no setteroverride
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