OdbcError class sealed

Base class for all ODBC-related errors.

Provides categorization helpers to help applications make intelligent decisions about error handling (retry, abort, reconnect, etc.).

Implemented types
Implementers

Properties

category ErrorCategory
Returns the error category for decision-making.
no setter
hashCode int
The hash code for this object.
no setterinherited
isConnectionError bool
Returns true if this is a connection-related error.
no setter
isRetryable bool
Returns true if the error is transient and may be retried.
no setter
message String
Human-readable error message describing what went wrong.
final
nativeCode int?
Native error code from the database driver.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sqlState String?
SQLSTATE from ODBC error (e.g., '42S02' for table not found).
final

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