// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class BadException extends LmdbNativeException {
// 
//   static final int MDB_BAD_TXN = -30_782;
//   private static final long serialVersionUID = 1L;
// 
//   BadException() {
//     super(MDB_BAD_TXN, "Transaction must abort, has a child, or is invalid");
//   }
// }
// 
// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class BadReaderLockException extends LmdbNativeException {
// 
//   static final int MDB_BAD_RSLOT = -30_783;
//   private static final long serialVersionUID = 1L;
// 
//   BadReaderLockException() {
//     super(MDB_BAD_RSLOT, "Invalid reuse of reader locktable slot");
//   }
// }
// 
// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class TxFullException extends LmdbNativeException {
// 
//   static final int MDB_TXN_FULL = -30_788;
//   private static final long serialVersionUID = 1L;
// 
//   TxFullException() {
//     super(MDB_TXN_FULL, "Transaction has too many dirty pages");
//   }
// }


import static jnr.constants.ConstantSet.getConstantSet;
import jnr.constants.Constant;
import jnr.constants.ConstantSet;
import org.lmdbjava.Txn.BadException;
import org.lmdbjava.Txn.BadReaderLockException;
import org.lmdbjava.Txn.TxFullException;
      case Dbi.BadValueSizeException.MDB_BAD_VALSIZE:
        throw new Dbi.BadValueSizeException();
      case LmdbNativeException.PageCorruptedException.MDB_CORRUPTED:
        throw new LmdbNativeException.PageCorruptedException();
      case Cursor.FullException.MDB_CURSOR_FULL:
        throw new Cursor.FullException();
      case Dbi.DbFullException.MDB_DBS_FULL:
        throw new Dbi.DbFullException();
      case Dbi.IncompatibleException.MDB_INCOMPATIBLE:
        throw new Dbi.IncompatibleException();
      case Env.FileInvalidException.MDB_INVALID:
        throw new Env.FileInvalidException();
      case Dbi.KeyExistsException.MDB_KEYEXIST:
        throw new Dbi.KeyExistsException();
      case Env.MapFullException.MDB_MAP_FULL:
        throw new Env.MapFullException();
      case Dbi.MapResizedException.MDB_MAP_RESIZED:
        throw new Dbi.MapResizedException();
      case Dbi.KeyNotFoundException.MDB_NOTFOUND:
        throw new Dbi.KeyNotFoundException();
      case LmdbNativeException.PageFullException.MDB_PAGE_FULL:
        throw new LmdbNativeException.PageFullException();
      case LmdbNativeException.PageNotFoundException.MDB_PAGE_NOTFOUND:
        throw new LmdbNativeException.PageNotFoundException();
      case LmdbNativeException.PanicException.MDB_PANIC:
        throw new LmdbNativeException.PanicException();
      case Env.ReadersFullException.MDB_READERS_FULL:
        throw new Env.ReadersFullException();
      case LmdbNativeException.TlsFullException.MDB_TLS_FULL:
        throw new LmdbNativeException.TlsFullException();
// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class BadException extends LmdbNativeException {
// 
//   static final int MDB_BAD_TXN = -30_782;
//   private static final long serialVersionUID = 1L;
// 
//   BadException() {
//     super(MDB_BAD_TXN, "Transaction must abort, has a child, or is invalid");
//   }
// }
// 
// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class BadReaderLockException extends LmdbNativeException {
// 
//   static final int MDB_BAD_RSLOT = -30_783;
//   private static final long serialVersionUID = 1L;
// 
//   BadReaderLockException() {
//     super(MDB_BAD_RSLOT, "Invalid reuse of reader locktable slot");
//   }
// }
// 
// Path: src/main/java/org/lmdbjava/Txn.java
// public static final class TxFullException extends LmdbNativeException {
// 
//   static final int MDB_TXN_FULL = -30_788;
//   private static final long serialVersionUID = 1L;
// 
//   TxFullException() {
//     super(MDB_TXN_FULL, "Transaction has too many dirty pages");
//   }
// }


// Path: src/main/java/org/lmdbjava/ResultCodeMapper.java
import static jnr.constants.ConstantSet.getConstantSet;
import jnr.constants.Constant;
import jnr.constants.ConstantSet;
import org.lmdbjava.Txn.BadException;
import org.lmdbjava.Txn.BadReaderLockException;
import org.lmdbjava.Txn.TxFullException;

      case Dbi.BadValueSizeException.MDB_BAD_VALSIZE:
        throw new Dbi.BadValueSizeException();
      case LmdbNativeException.PageCorruptedException.MDB_CORRUPTED:
        throw new LmdbNativeException.PageCorruptedException();
      case Cursor.FullException.MDB_CURSOR_FULL:
        throw new Cursor.FullException();
      case Dbi.DbFullException.MDB_DBS_FULL:
        throw new Dbi.DbFullException();
      case Dbi.IncompatibleException.MDB_INCOMPATIBLE:
        throw new Dbi.IncompatibleException();
      case Env.FileInvalidException.MDB_INVALID:
        throw new Env.FileInvalidException();
      case Dbi.KeyExistsException.MDB_KEYEXIST:
        throw new Dbi.KeyExistsException();
      case Env.MapFullException.MDB_MAP_FULL:
        throw new Env.MapFullException();
      case Dbi.MapResizedException.MDB_MAP_RESIZED:
        throw new Dbi.MapResizedException();
      case Dbi.KeyNotFoundException.MDB_NOTFOUND:
        throw new Dbi.KeyNotFoundException();
      case LmdbNativeException.PageFullException.MDB_PAGE_FULL:
        throw new LmdbNativeException.PageFullException();
      case LmdbNativeException.PageNotFoundException.MDB_PAGE_NOTFOUND:
        throw new LmdbNativeException.PageNotFoundException();
      case LmdbNativeException.PanicException.MDB_PANIC:
        throw new LmdbNativeException.PanicException();
      case Env.ReadersFullException.MDB_READERS_FULL:
        throw new Env.ReadersFullException();
      case LmdbNativeException.TlsFullException.MDB_TLS_FULL:
        throw new LmdbNativeException.TlsFullException();
      case TxFullException.MDB_TXN_FULL: