docs: static void checkRc(final int rc) throws LmdbNativeException {
      switch (rc) {
        case MDB_SUCCESS:
          return;
        case Dbi.BadDbiException.MDB_BAD_DBI:
          throw new Dbi.BadDbiException();
        case BadReaderLockException.MDB_BAD_RSLOT:
          throw new BadReaderLockException();
        case BadException.MDB_BAD_TXN:
          throw new BadException();
        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:
          throw new TxFullException();
        case Env.VersionMismatchException.MDB_VERSION_MISMATCH:
          throw new Env.VersionMismatchException();
        default:
          break;
      }
  
      final Constant constant = CONSTANTS.getConstant(rc);
      if (constant == null) {
        throw new IllegalArgumentException("Unknown result code " + rc);
      }
      final String msg = constant.name() + " " + constant.toString();
      throw new LmdbNativeException.ConstantDerviedException(rc, msg);
    }