LMDBException class

Exception class for LMDB-specific errors.

This class provides detailed error information including:

  • A human-readable message
  • The native LMDB error code
  • The corresponding error string from the LMDB library

Example:

try {
  await db.put(txn, 'key', 'value');
} catch (e) {
  if (e is LMDBException) {
    print('LMDB error: ${e.errorString}');
    print('Error code: ${e.errorCode}');
  }
}
Implemented types

Constructors

LMDBException(String message, int errorCode)
Creates a new LMDB exception with the given message and error code.

Properties

errorCode → int
Native LMDB error code.
final
errorString ↔ String
Corresponding error string from the LMDB library.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
message → String
Custom error message describing the context of the error.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Returns a formatted string representation of the exception.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited