getErrorString method
Gets a human-readable error string for an LMDB error code.
Parameters:
err- LMDB error code
Returns a descriptive error message.
Example:
try {
// ... some operation
} catch (e) {
if (e is LMDBException) {
print('Error: ${db.getErrorString(e.errorCode)}');
}
}
Implementation
String getErrorString(int err) {
final ptr = _lib.mdb_strerror(err);
return ptr.cast<Utf8>().toDartString();
}