getStructuredError method
Gets structured error information including SQLSTATE and native code.
Returns null if no error occurred or if structured error info is not available.
Implementation
StructuredError? getStructuredError() {
final data = callWithBuffer(
_bindings.odbc_get_structured_error,
);
if (data == null || data.isEmpty) {
return null;
}
return StructuredError.deserialize(data);
}