StructuredError class
Represents a structured ODBC error from the native layer.
Contains SQLSTATE code, native error code, and error message. This provides more detailed error information than simple error strings.
Constructors
-
StructuredError({required List<
int> sqlState, required int nativeCode, required String message}) -
Creates a new StructuredError instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message.
final
- nativeCode → int
-
Native database error code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sqlState
→ List<
int> -
SQLSTATE code as a 5-byte list (e.g.,
0x34, 0x32, 0x53, 0x30, 0x32).final - sqlStateString → String
-
Gets the SQLSTATE code as a string.
no setter
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
Static Methods
-
deserialize(
List< int> data) → StructuredError? - Deserializes a StructuredError from binary data.