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(
(buf, bufLen, outWritten) =>
_bindings.odbc_get_structured_error(buf, bufLen, outWritten),
);
if (data == null || data.isEmpty) {
return null;
}
return StructuredError.deserialize(data);
}