00001
00011 #ifndef P6ERR_H__
00012 #define P6ERR_H__ 1
00013
00014 #include "p6types.h"
00015
00016 namespace P6R {
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00044 #define P6ERR_STATUS_SUCCESS 0
00045 #define P6ERR_STATUS_FAILURE 1
00046 #define P6ERR_STATUS(err) (((err) >> 31) & 0x1)
00047 #define P6ERR_FACILITY(err) (((err) >> 16 ) & 0x7fff)
00048 #define P6ERR_CODE(err) ((err) & 0xffff)
00049 #define P6MAKEERR(s,f,c) ((P6ERR)(((P6UINT32)(s)<<31)|((P6UINT32)(f)<<16)|((P6UINT32)(c))))
00050 #define P6SUCCEEDED(err) (P6ERR_STATUS_SUCCESS == P6ERR_STATUS((err)))
00051 #define P6FAILED(err) (P6ERR_STATUS_FAILURE == P6ERR_STATUS((err)))
00052
00058 typedef enum {
00059 P6EF_GENERAL = 0x0,
00060 P6EF_NETWORK = 0x1,
00061 P6EF_COM = 0x2,
00062 P6EF_DCOM = 0x3,
00063 P6EF_MINUSER = 0x2000,
00064 P6EF_MAX = 0x7fff
00065 } ERR_FACILITY;
00066
00071 static const P6ERR eOk = 0L;
00072 static const P6ERR eAborted = 0x80000001;
00073 static const P6ERR eAccess = 0x80000002;
00074 static const P6ERR eAccessFault = 0x80000003;
00075 static const P6ERR eAlreadyInitialized = 0x80000004;
00076 static const P6ERR eAlreadyRegistered = 0x80000005;
00077 static const P6ERR eBusy = 0x80000006;
00078 static const P6ERR eCompleted = 0x00000007;
00079 static const P6ERR eDeviceFull = 0x80000008;
00080 static const P6ERR eEndOfFile = 0x80000009;
00081 static const P6ERR eExists = 0x8000000a;
00082 static const P6ERR eFail = 0x8000000b;
00083 static const P6ERR eFileTooBig = 0x8000000c;
00084 static const P6ERR eFormatError = 0x8000000d;
00085 static const P6ERR eInternalError = 0x8000000e;
00086 static const P6ERR eInterrupted = 0x8000000f;
00087 static const P6ERR eInvalidArg = 0x80000010;
00088 static const P6ERR eInvalidDescriptor = 0x80000011;
00089 static const P6ERR eInvalidHandle = 0x80000012;
00090 static const P6ERR eInvalidPriority = 0x80000013;
00091 static const P6ERR eInvalidState = 0x80000014;
00092 static const P6ERR eInvalidVersion = 0x80000015;
00093 static const P6ERR eIoError = 0x80000016;
00094 static const P6ERR eLicenseMissing = 0x80000017;
00095 static const P6ERR eLicenseViolation = 0x80000018;
00096 static const P6ERR eNameTooLong = 0x80000019;
00097 static const P6ERR eNoChildren = 0x8000001a;
00098 static const P6ERR eNoExec = 0x8000001b;
00099 static const P6ERR eNoMemory = 0x8000001c;
00100 static const P6ERR eNoProcessHandles = 0x8000001d;
00101 static const P6ERR eNoSystemHandles = 0x8000001e;
00102 static const P6ERR eNotADir = 0x8000001f;
00103 static const P6ERR eNotEmpty = 0x80000020;
00104 static const P6ERR eNotFound = 0x80000021;
00105 static const P6ERR eNotImplemented = 0x80000022;
00106 static const P6ERR eNotInitialized = 0x80000023;
00107 static const P6ERR eNotSupported = 0x80000024;
00108 static const P6ERR ePathNotFound = 0x80000025;
00109 static const P6ERR eSeek = 0x80000026;
00110 static const P6ERR eShuttingDown = 0x80000027;
00111 static const P6ERR eThreadCreateFailed = 0x80000028;
00112 static const P6ERR eTimeout = 0x80000029;
00113 static const P6ERR eTooBig = 0x8000002a;
00114 static const P6ERR eTooManyOpenFiles = 0x8000002b;
00115 static const P6ERR eTooSmall = 0x8000002c;
00116 static const P6ERR eTryAgain = 0x8000002d;
00117 static const P6ERR eUnsupported = 0x8000002e;
00118 static const P6ERR eWouldBlock = 0x8000002f;
00119 static const P6ERR eEndOfRecord = 0x80000030;
00120 static const P6ERR eSharing = 0x80000031;
00121 static const P6ERR eLocked = 0x80000032;
00122 static const P6ERR eRead = 0x80000033;
00123 static const P6ERR eWrite = 0x80000034;
00124 static const P6ERR eCryptoUnavailable = 0x80000035;
00125 static const P6ERR ePending = 0x80000036;
00126 static const P6ERR eInvalidURI = 0x80000037;
00127 static const P6ERR eDisabled = 0x80000038;
00128 static const P6ERR eFailAndException = 0x80000039;
00129 static const P6ERR eServiceConnect = 0x8000003a;
00130 static const P6ERR eServiceNotFound = 0x8000003b;
00131 static const P6ERR eServiceNotStarted = 0x8000003c;
00132 static const P6ERR eServiceDisabled = 0x8000003d;
00133 static const P6ERR eServiceRunning = 0x8000003e;
00134 static const P6ERR eModuleNotFound = 0x8000003f;
00135 static const P6ERR eProcNotFound = 0x80000040;
00136 static const P6ERR eRange = 0x80000041;
00137 static const P6ERR eSignatureMissing = 0x80000042;
00138 static const P6ERR eFileNotFound = 0x80000043;
00143 static const P6ERR eAddrInUse = 0x80010001;
00144 static const P6ERR eAddrNotAvail = 0x80010002;
00145 static const P6ERR eAlreadyBound = 0x80010003;
00146 static const P6ERR eAlreadyConn = 0x80010004;
00147 static const P6ERR eBadAddr = 0x80010005;
00148 static const P6ERR eBadMsg = 0x80010006;
00149 static const P6ERR eBadProtocol = 0x80010007;
00150 static const P6ERR eConnAborted = 0x80010008;
00151 static const P6ERR eConnClosed = 0x80010009;
00152 static const P6ERR eConnRefused = 0x8001000a;
00153 static const P6ERR eConnReset = 0x8001000b;
00154 static const P6ERR eDestAddrReq = 0x8001000c;
00155 static const P6ERR eHostNotFound = 0x8001000d;
00156 static const P6ERR eHostUnreachable = 0x8001000e;
00157 static const P6ERR eInProgress = 0x8001000f;
00158 static const P6ERR eNetDown = 0x80010010;
00159 static const P6ERR eNetUnreachable = 0x80010011;
00160 static const P6ERR eNotBound = 0x80010012;
00161 static const P6ERR eNotConn = 0x80010013;
00162 static const P6ERR eNotSock = 0x80010014;
00163 static const P6ERR eProtoError = 0x80010015;
00164 static const P6ERR eProtoType = 0x80010016;
00165 static const P6ERR eShutdown = 0x80010017;
00166 static const P6ERR eSocket = 0x80010018;
00167 static const P6ERR eUnreachable = 0x80010019;
00168 static const P6ERR eUnsupAddrFam = 0x8001001a;
00169 static const P6ERR eUnsupAddrType = 0x8001001b;
00170 static const P6ERR eNameServerErr = 0x8001001c;
00171 static const P6ERR eNoAddress = 0x8001001d;
00172 static const P6ERR eNotAsync = 0x8001001e;
00173 static const P6ERR eNoAssoc = 0x8001001f;
00174 static const P6ERR eNetPrototype = 0x80010020;
00175 static const P6ERR eNetNoProtoOpt = 0x80010021;
00176 static const P6ERR eNetUnsupProto = 0x80010022;
00177 static const P6ERR eNetUnsupSocket = 0x80010023;
00178 static const P6ERR eNetUnsupOp = 0x80010024;
00179 static const P6ERR eNetUnsupProtoFam = 0x80010025;
00180 static const P6ERR eNetReset = 0x80010026;
00181 static const P6ERR eNetNoBufs = 0x80010027;
00182 static const P6ERR eNetShutdown = 0x80010028;
00183 static const P6ERR eNetTooManyRefs = 0x80010029;
00184 static const P6ERR eNetLoop = 0x8001002a;
00185 static const P6ERR eNetNameTooLong = 0x8001002b;
00186 static const P6ERR eNetHostDown = 0x8001002c;
00187 static const P6ERR eNetNotEmpty = 0x8001002d;
00188 static const P6ERR eNetTooManyProcs = 0x8001002e;
00189 static const P6ERR eNetTooManyUsers = 0x8001002f;
00190 static const P6ERR eNetDiskQuota = 0x80010030;
00191 static const P6ERR eNetStale = 0x80010031;
00192 static const P6ERR eNetRemote = 0x80010032;
00193 static const P6ERR eNetDisConn = 0x80010033;
00194 static const P6ERR eNetIoPending = 0x80010034;
00195 static const P6ERR eNetFiltered = 0x80010035;
00201 static const P6ERR eComponentNotFound = 0x80020001;
00202 static const P6ERR eComponentNotReg = 0x80020002;
00203 static const P6ERR eDllError = 0x80020003;
00204 static const P6ERR eDllNotCom = 0x80020004;
00205 static const P6ERR eDllNotFound = 0x80020005;
00206 static const P6ERR eNoAgregation = 0x80020006;
00207 static const P6ERR eNoInterface = 0x80020007;
00208 static const P6ERR eRegDBCorrupt = 0x80020008;
00209 static const P6ERR eUnloadDllError = 0x80020009;
00210 static const P6ERR eInvalidLicense = 0x8002000a;
00211 static const P6ERR eInvalidRefcount = 0x8002000b;
00216 static const P6ERR eObjectCloseMismatch = 0x80030001;
00217 static const P6ERR eArrayCloseMismatch = 0x80030002;
00222 static const P6ERR eMissingKey = 0x80040001;
00223 static const P6ERR eWrongKeyType = 0x80040002;
00224 static const P6ERR eWrongKeyClass = 0x80040003;
00225 static const P6ERR eWrongKeySize = 0x80040004;
00226 static const P6ERR eWrongKeyVersion = 0x80040005;
00227 static const P6ERR eWrongKeyId = 0x80040006;
00228 static const P6ERR eInvalidCipher = 0x80040007;
00229 static const P6ERR eReadPrivateKey = 0x80040008;
00230 static const P6ERR eReadPublicKey = 0x80040009;
00231 static const P6ERR eKeyWriteFailed = 0x8004000a;
00232 static const P6ERR eKeyGenFailed = 0x8004000b;
00233 static const P6ERR eKeyGenParamsFailed = 0x8004000c;
00234 static const P6ERR eInvalidCert = 0x8004000d;
00235 static const P6ERR eInvalidHMAC = 0x8004000e;
00236 static const P6ERR ePrimeNotSafe = 0x8004000f;
00237 static const P6ERR eBadGenerator = 0x80040010;
00238 static const P6ERR eSignatureMismatch = 0x80040011;
00239 static const P6ERR eAESCounterNotSet = 0x80040012;
00244 static const P6ERR eMostCallClose = 0x80080001;
00245 static const P6ERR eBindRange = 0x80080002;
00246 static const P6ERR eSQLError = 0x80080003;
00247 static const P6ERR eValueNULL = 0x80080004;
00252 static const P6ERR eUnbalancedParens = 0x80090001;
00253 static const P6ERR eBackTrackStackLimit = 0x80090002;
00254 static const P6ERR eBackTrackStepLimit = 0x80090003;
00255 static const P6ERR eMatchEmpty = 0x80090004;
00260 static const P6ERR eNumberTooBig = 0x800B0001;
00265 static const P6ERR eSignatureFault = 0x800C0001;
00266 static const P6ERR eInsufficentEntropy = 0x800C0002;
00267 static const P6ERR eInconsistentName = 0x800C0003;
00268 static const P6ERR eNoBindingName = 0x800C0004;
00269 static const P6ERR eV1TrapMsg = 0x800C0005;
00270 static const P6ERR eTimeWrap = 0x800C0006;
00275 static const P6ERR eMismatchedElements = 0x800D0001;
00276 static const P6ERR eAttributeMismatch = 0x800D0002;
00277 static const P6ERR eMissingTemplate = 0x800D0003;
00278 static const P6ERR eMissingAttribute = 0x800D0004;
00279 static const P6ERR eNotFoundHref = 0x800D0005;
00280 static const P6ERR eTooManyIncludes = 0x800D0006;
00281 static const P6ERR eAmbiguousGlobalVar = 0x800D0007;
00282 static const P6ERR eAmbiguousTemplate = 0x800D0008;
00283 static const P6ERR eTypeError = 0x800D0009;
00284 static const P6ERR eCountError = 0x800D000A;
00285 static const P6ERR eMissingParameter = 0x800D000B;
00286 static const P6ERR eMissingNamespace = 0x800D000C;
00287 static const P6ERR eMissingAttributeSet = 0x800D000D;
00288 static const P6ERR eMissingOutput = 0x800D000E;
00289 static const P6ERR eUnknownElement = 0x800D000F;
00290 static const P6ERR eMissingCharacterMap = 0x800D0010;
00291 static const P6ERR eNotValidXML = 0x800D0011;
00296 static const P6ERR eRuleMissingIf = 0x800E0001;
00297 static const P6ERR eRuleMissingThen = 0x800E0002;
00298 static const P6ERR eRuleMissingAction = 0x800E0003;
00299 static const P6ERR eRuleNotDefined = 0x800E0004;
00300 static const P6ERR eRuleDuplicate = 0x800E0005;
00301 static const P6ERR eRuleBadFocus = 0x800E0006;
00302 static const P6ERR eRuleBadCall = 0x800E0007;
00303 static const P6ERR eRuleNoVar = 0x800E0008;
00304 static const P6ERR eInvalidSyntax = 0x800E0009;
00309 static const P6ERR eBadDurationType = 0x800F0001;
00310 static const P6ERR eBadIfThen = 0x800F0002;
00311 static const P6ERR eBadIfThenElse = 0x800F0003;
00312 static const P6ERR eBadForLoop = 0x800F0004;
00313 static const P6ERR eBadSomeEvery = 0x800F0005;
00314 static const P6ERR eUnknownCollation = 0x800F0006;
00316 #ifdef __cplusplus
00317 }
00318 #endif
00319
00320 }
00321
00322 #endif
00323