1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 2009 Oracle. All rights reserved. 5 * 6 */ 7using System; 8using System.Collections.Generic; 9using System.Text; 10using BerkeleyDB.Internal; 11 12namespace BerkeleyDB { 13 /// <summary> 14 /// Constants representing error codes returned by the Berkeley DB library. 15 /// </summary> 16 public class ErrorCodes { 17 ///<summary> 18 /// User memory too small for return. 19 ///</summary> 20 public const int DB_BUFFER_SMALL = DbConstants.DB_BUFFER_SMALL; 21 ///<summary> 22 /// "Null" return from 2ndary callbk. 23 ///</summary> 24 public const int DB_DONOTINDEX = DbConstants.DB_DONOTINDEX; 25 ///<summary> 26 /// A foreign db constraint triggered. 27 ///</summary> 28 public const int DB_FOREIGN_CONFLICT = DbConstants.DB_FOREIGN_CONFLICT; 29 ///<summary> 30 /// Key/data deleted or never created. 31 ///</summary> 32 public const int DB_KEYEMPTY = DbConstants.DB_KEYEMPTY; 33 ///<summary> 34 /// The key/data pair already exists. 35 ///</summary> 36 public const int DB_KEYEXIST = DbConstants.DB_KEYEXIST; 37 ///<summary> 38 /// Deadlock. 39 ///</summary> 40 public const int DB_LOCK_DEADLOCK = DbConstants.DB_LOCK_DEADLOCK; 41 ///<summary> 42 /// Lock unavailable. 43 ///</summary> 44 public const int DB_LOCK_NOTGRANTED = DbConstants.DB_LOCK_NOTGRANTED; 45 ///<summary> 46 /// In-memory log buffer full. 47 ///</summary> 48 public const int DB_LOG_BUFFER_FULL = DbConstants.DB_LOG_BUFFER_FULL; 49 ///<summary> 50 /// Server panic return. 51 ///</summary> 52 public const int DB_NOSERVER = DbConstants.DB_NOSERVER; 53 ///<summary> 54 /// Bad home sent to server. 55 ///</summary> 56 public const int DB_NOSERVER_HOME = DbConstants.DB_NOSERVER_HOME; 57 ///<summary> 58 /// Bad ID sent to server. 59 ///</summary> 60 public const int DB_NOSERVER_ID = DbConstants.DB_NOSERVER_ID; 61 ///<summary> 62 /// Key/data pair not found (EOF). 63 ///</summary> 64 public const int DB_NOTFOUND = DbConstants.DB_NOTFOUND; 65 ///<summary> 66 /// Out-of-date version. 67 ///</summary> 68 public const int DB_OLD_VERSION = DbConstants.DB_OLD_VERSION; 69 ///<summary> 70 /// Requested page not found. 71 ///</summary> 72 public const int DB_PAGE_NOTFOUND = DbConstants.DB_PAGE_NOTFOUND; 73 ///<summary> 74 /// There are two masters. 75 ///</summary> 76 public const int DB_REP_DUPMASTER = DbConstants.DB_REP_DUPMASTER; 77 ///<summary> 78 /// Rolled back a commit. 79 ///</summary> 80 public const int DB_REP_HANDLE_DEAD = DbConstants.DB_REP_HANDLE_DEAD; 81 ///<summary> 82 /// Time to hold an election. 83 ///</summary> 84 public const int DB_REP_HOLDELECTION = DbConstants.DB_REP_HOLDELECTION; 85 ///<summary> 86 /// This msg should be ignored. 87 ///</summary> 88 public const int DB_REP_IGNORE = DbConstants.DB_REP_IGNORE; 89 ///<summary> 90 /// Cached not written perm written. 91 ///</summary> 92 public const int DB_REP_ISPERM = DbConstants.DB_REP_ISPERM; 93 ///<summary> 94 /// Unable to join replication group. 95 ///</summary> 96 public const int DB_REP_JOIN_FAILURE = DbConstants.DB_REP_JOIN_FAILURE; 97 ///<summary> 98 /// Master lease has expired. 99 ///</summary> 100 public const int DB_REP_LEASE_EXPIRED = DbConstants.DB_REP_LEASE_EXPIRED; 101 ///<summary> 102 /// API/Replication lockout now. 103 ///</summary> 104 public const int DB_REP_LOCKOUT = DbConstants.DB_REP_LOCKOUT; 105 ///<summary> 106 /// New site entered system. 107 ///</summary> 108 public const int DB_REP_NEWSITE = DbConstants.DB_REP_NEWSITE; 109 ///<summary> 110 /// Permanent log record not written. 111 ///</summary> 112 public const int DB_REP_NOTPERM = DbConstants.DB_REP_NOTPERM; 113 ///<summary> 114 /// Site cannot currently be reached. 115 ///</summary> 116 public const int DB_REP_UNAVAIL = DbConstants.DB_REP_UNAVAIL; 117 ///<summary> 118 /// Panic return. 119 ///</summary> 120 public const int DB_RUNRECOVERY = DbConstants.DB_RUNRECOVERY; 121 ///<summary> 122 /// Secondary index corrupt. 123 ///</summary> 124 public const int DB_SECONDARY_BAD = DbConstants.DB_SECONDARY_BAD; 125 ///<summary> 126 /// Verify failed; bad format. 127 ///</summary> 128 public const int DB_VERIFY_BAD = DbConstants.DB_VERIFY_BAD; 129 ///<summary> 130 /// Environment version mismatch. 131 ///</summary> 132 public const int DB_VERSION_MISMATCH = DbConstants.DB_VERSION_MISMATCH; 133 134 } 135}