/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2009 Oracle. All rights reserved.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using BerkeleyDB.Internal;
namespace BerkeleyDB {
///
/// Constants representing error codes returned by the Berkeley DB library.
///
public class ErrorCodes {
///
/// User memory too small for return.
///
public const int DB_BUFFER_SMALL = DbConstants.DB_BUFFER_SMALL;
///
/// "Null" return from 2ndary callbk.
///
public const int DB_DONOTINDEX = DbConstants.DB_DONOTINDEX;
///
/// A foreign db constraint triggered.
///
public const int DB_FOREIGN_CONFLICT = DbConstants.DB_FOREIGN_CONFLICT;
///
/// Key/data deleted or never created.
///
public const int DB_KEYEMPTY = DbConstants.DB_KEYEMPTY;
///
/// The key/data pair already exists.
///
public const int DB_KEYEXIST = DbConstants.DB_KEYEXIST;
///
/// Deadlock.
///
public const int DB_LOCK_DEADLOCK = DbConstants.DB_LOCK_DEADLOCK;
///
/// Lock unavailable.
///
public const int DB_LOCK_NOTGRANTED = DbConstants.DB_LOCK_NOTGRANTED;
///
/// In-memory log buffer full.
///
public const int DB_LOG_BUFFER_FULL = DbConstants.DB_LOG_BUFFER_FULL;
///
/// Server panic return.
///
public const int DB_NOSERVER = DbConstants.DB_NOSERVER;
///
/// Bad home sent to server.
///
public const int DB_NOSERVER_HOME = DbConstants.DB_NOSERVER_HOME;
///
/// Bad ID sent to server.
///
public const int DB_NOSERVER_ID = DbConstants.DB_NOSERVER_ID;
///
/// Key/data pair not found (EOF).
///
public const int DB_NOTFOUND = DbConstants.DB_NOTFOUND;
///
/// Out-of-date version.
///
public const int DB_OLD_VERSION = DbConstants.DB_OLD_VERSION;
///
/// Requested page not found.
///
public const int DB_PAGE_NOTFOUND = DbConstants.DB_PAGE_NOTFOUND;
///
/// There are two masters.
///
public const int DB_REP_DUPMASTER = DbConstants.DB_REP_DUPMASTER;
///
/// Rolled back a commit.
///
public const int DB_REP_HANDLE_DEAD = DbConstants.DB_REP_HANDLE_DEAD;
///
/// Time to hold an election.
///
public const int DB_REP_HOLDELECTION = DbConstants.DB_REP_HOLDELECTION;
///
/// This msg should be ignored.
///
public const int DB_REP_IGNORE = DbConstants.DB_REP_IGNORE;
///
/// Cached not written perm written.
///
public const int DB_REP_ISPERM = DbConstants.DB_REP_ISPERM;
///
/// Unable to join replication group.
///
public const int DB_REP_JOIN_FAILURE = DbConstants.DB_REP_JOIN_FAILURE;
///
/// Master lease has expired.
///
public const int DB_REP_LEASE_EXPIRED = DbConstants.DB_REP_LEASE_EXPIRED;
///
/// API/Replication lockout now.
///
public const int DB_REP_LOCKOUT = DbConstants.DB_REP_LOCKOUT;
///
/// New site entered system.
///
public const int DB_REP_NEWSITE = DbConstants.DB_REP_NEWSITE;
///
/// Permanent log record not written.
///
public const int DB_REP_NOTPERM = DbConstants.DB_REP_NOTPERM;
///
/// Site cannot currently be reached.
///
public const int DB_REP_UNAVAIL = DbConstants.DB_REP_UNAVAIL;
///
/// Panic return.
///
public const int DB_RUNRECOVERY = DbConstants.DB_RUNRECOVERY;
///
/// Secondary index corrupt.
///
public const int DB_SECONDARY_BAD = DbConstants.DB_SECONDARY_BAD;
///
/// Verify failed; bad format.
///
public const int DB_VERIFY_BAD = DbConstants.DB_VERIFY_BAD;
///
/// Environment version mismatch.
///
public const int DB_VERSION_MISMATCH = DbConstants.DB_VERSION_MISMATCH;
}
}