ErrorHandler constructor

ErrorHandler(
  1. int code
)

Implementation

ErrorHandler(this.code) {
  if (code != 0) {
    print("error code number $code");
    final errorMessage = LMDBFunctions().mdbStrError(code).toString();
    print("error message: $errorMessage");
    throw errorMessage;
  }
}