Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6err.h
Go to the documentation of this file.
1 
11 #ifndef P6ERR_H__
12 #define P6ERR_H__ 1
13 
14 #include "p6types.h"
15 
16 #ifdef __cplusplus
17 namespace P6R {
18 extern "C" {
19 #endif
20 
43 #define P6ERR_STATUS_SUCCESS 0
44 #define P6ERR_STATUS_FAILURE 1
45 #define P6ERR_STATUS(err) (((err) >> 31) & 0x1)
46 #define P6ERR_FACILITY(err) (((err) >> 16 ) & 0x7fff)
47 #define P6ERR_CODE(err) ((err) & 0xffff)
48 #define P6MAKEERR(s,f,c) ((P6ERR)(((P6UINT32)(s)<<31)|((P6UINT32)(f)<<16)|((P6UINT32)(c))))
49 #define P6SUCCEEDED(err) (P6ERR_STATUS_SUCCESS == P6ERR_STATUS((err)))
50 #define P6FAILED(err) (P6ERR_STATUS_FAILURE == P6ERR_STATUS((err)))
51 
57 typedef enum {
58  P6EF_GENERAL = 0x00,
59  P6EF_NETWORK = 0x01,
60  P6EF_COM = 0x02,
61  P6EF_JSON = 0x03,
62  P6EF_CRYPTO = 0x04,
63  P6EF_CERT = 0x05,
64  P6EF_SSL = 0x06,
65  P6EF_DBASE = 0x08,
66  P6EF_REGEX = 0x09,
67  P6EF_LDAP = 0x0b,
68  P6EF_SNMP = 0x0c,
69  P6EF_XSLT = 0x0d,
70  P6EF_RULEENG = 0x0e,
71  P6EF_XPATH = 0x0f,
72  P6EF_GZIP = 0x10,
73  P6EF_MINUSER = 0x2000,
74  P6EF_MAX = 0x7fff
75 } ERR_FACILITY;
76 
81 static const P6ERR eOk = 0L;
82 static const P6ERR eAborted = 0x80000001;
83 static const P6ERR eAccess = 0x80000002;
84 static const P6ERR eAccessFault = 0x80000003;
85 static const P6ERR eAlreadyInitialized = 0x80000004;
86 static const P6ERR eAlreadyRegistered = 0x80000005;
87 static const P6ERR eBusy = 0x80000006;
88 static const P6ERR eCompleted = 0x00000007;
89 static const P6ERR eDeviceFull = 0x80000008;
90 static const P6ERR eEndOfFile = 0x80000009;
91 static const P6ERR eExists = 0x8000000a;
92 static const P6ERR eFail = 0x8000000b;
93 static const P6ERR eFileTooBig = 0x8000000c;
94 static const P6ERR eFormatError = 0x8000000d;
95 static const P6ERR eInternalError = 0x8000000e;
96 static const P6ERR eInterrupted = 0x8000000f;
97 static const P6ERR eInvalidArg = 0x80000010;
98 static const P6ERR eInvalidDescriptor = 0x80000011;
99 static const P6ERR eInvalidHandle = 0x80000012;
100 static const P6ERR eInvalidPriority = 0x80000013;
101 static const P6ERR eInvalidState = 0x80000014;
102 static const P6ERR eInvalidVersion = 0x80000015;
103 static const P6ERR eIoError = 0x80000016;
104 static const P6ERR eLicenseMissing = 0x80000017;
105 static const P6ERR eLicenseViolation = 0x80000018;
106 static const P6ERR eNameTooLong = 0x80000019;
107 static const P6ERR eNoChildren = 0x8000001a;
108 static const P6ERR eNoExec = 0x8000001b;
109 static const P6ERR eNoMemory = 0x8000001c;
110 static const P6ERR eNoProcessHandles = 0x8000001d;
111 static const P6ERR eNoSystemHandles = 0x8000001e;
112 static const P6ERR eNotADir = 0x8000001f;
113 static const P6ERR eNotEmpty = 0x80000020;
114 static const P6ERR eNotFound = 0x80000021;
115 static const P6ERR eNotImplemented = 0x80000022;
116 static const P6ERR eNotInitialized = 0x80000023;
117 static const P6ERR eNotSupported = 0x80000024;
118 static const P6ERR ePathNotFound = 0x80000025;
119 static const P6ERR eSeek = 0x80000026;
120 static const P6ERR eShuttingDown = 0x80000027;
121 static const P6ERR eThreadCreateFailed = 0x80000028;
122 static const P6ERR eTimeout = 0x80000029;
123 static const P6ERR eTooBig = 0x8000002a;
124 static const P6ERR eTooManyOpenFiles = 0x8000002b;
125 static const P6ERR eTooSmall = 0x8000002c;
126 static const P6ERR eTryAgain = 0x8000002d;
127 static const P6ERR eUnsupported = 0x8000002e;
128 static const P6ERR eWouldBlock = 0x8000002f;
129 static const P6ERR eEndOfRecord = 0x80000030;
130 static const P6ERR eSharing = 0x80000031;
131 static const P6ERR eLocked = 0x80000032;
132 static const P6ERR eRead = 0x80000033;
133 static const P6ERR eWrite = 0x80000034;
134 static const P6ERR eCryptoUnavailable = 0x80000035;
135 static const P6ERR ePending = 0x80000036;
136 static const P6ERR eInvalidURI = 0x80000037;
137 static const P6ERR eDisabled = 0x80000038;
138 static const P6ERR eFailAndException = 0x80000039;
139 static const P6ERR eServiceConnect = 0x8000003a;
140 static const P6ERR eServiceNotFound = 0x8000003b;
141 static const P6ERR eServiceNotStarted = 0x8000003c;
142 static const P6ERR eServiceDisabled = 0x8000003d;
143 static const P6ERR eServiceRunning = 0x8000003e;
144 static const P6ERR eModuleNotFound = 0x8000003f;
145 static const P6ERR eProcNotFound = 0x80000040;
146 static const P6ERR eRange = 0x80000041;
147 static const P6ERR eSignatureMissing = 0x80000042;
148 static const P6ERR eFileNotFound = 0x80000043;
149 static const P6ERR ePartial = 0x80000044;
150 static const P6ERR eAbsolutePath = 0x80000045;
151 static const P6ERR eDone = 0x80000046;
152 static const P6ERR eAuth = 0x80000047;
157 static const P6ERR eAddrInUse = 0x80010001;
158 static const P6ERR eAddrNotAvail = 0x80010002;
159 static const P6ERR eAlreadyBound = 0x80010003;
160 static const P6ERR eAlreadyConn = 0x80010004;
161 static const P6ERR eBadAddr = 0x80010005;
162 static const P6ERR eBadMsg = 0x80010006;
163 static const P6ERR eBadProtocol = 0x80010007;
164 static const P6ERR eConnAborted = 0x80010008;
165 static const P6ERR eConnClosed = 0x80010009;
166 static const P6ERR eConnRefused = 0x8001000a;
167 static const P6ERR eConnReset = 0x8001000b;
168 static const P6ERR eDestAddrReq = 0x8001000c;
169 static const P6ERR eHostNotFound = 0x8001000d;
170 static const P6ERR eHostUnreachable = 0x8001000e;
171 static const P6ERR eInProgress = 0x8001000f;
172 static const P6ERR eNetDown = 0x80010010;
173 static const P6ERR eNetUnreachable = 0x80010011;
174 static const P6ERR eNotBound = 0x80010012;
175 static const P6ERR eNotConn = 0x80010013;
176 static const P6ERR eNotSock = 0x80010014;
177 static const P6ERR eProtoError = 0x80010015;
178 static const P6ERR eProtoType = 0x80010016;
179 static const P6ERR eShutdown = 0x80010017;
180 static const P6ERR eSocket = 0x80010018;
181 static const P6ERR eUnreachable = 0x80010019;
182 static const P6ERR eUnsupAddrFam = 0x8001001a;
183 static const P6ERR eUnsupAddrType = 0x8001001b;
184 static const P6ERR eNameServerErr = 0x8001001c;
185 static const P6ERR eNoAddress = 0x8001001d;
186 static const P6ERR eNotAsync = 0x8001001e;
187 static const P6ERR eNoAssoc = 0x8001001f;
188 static const P6ERR eNetPrototype = 0x80010020;
189 static const P6ERR eNetNoProtoOpt = 0x80010021;
190 static const P6ERR eNetUnsupProto = 0x80010022;
191 static const P6ERR eNetUnsupSocket = 0x80010023;
192 static const P6ERR eNetUnsupOp = 0x80010024;
193 static const P6ERR eNetUnsupProtoFam = 0x80010025;
194 static const P6ERR eNetReset = 0x80010026;
195 static const P6ERR eNetNoBufs = 0x80010027;
196 static const P6ERR eNetShutdown = 0x80010028;
197 static const P6ERR eNetTooManyRefs = 0x80010029;
198 static const P6ERR eNetLoop = 0x8001002a;
199 static const P6ERR eNetNameTooLong = 0x8001002b;
200 static const P6ERR eNetHostDown = 0x8001002c;
201 static const P6ERR eNetNotEmpty = 0x8001002d;
202 static const P6ERR eNetTooManyProcs = 0x8001002e;
203 static const P6ERR eNetTooManyUsers = 0x8001002f;
204 static const P6ERR eNetDiskQuota = 0x80010030;
205 static const P6ERR eNetStale = 0x80010031;
206 static const P6ERR eNetRemote = 0x80010032;
207 static const P6ERR eNetDisConn = 0x80010033;
208 static const P6ERR eNetIoPending = 0x80010034;
209 static const P6ERR eNetFiltered = 0x80010035;
215 static const P6ERR eComponentNotFound = 0x80020001;
216 static const P6ERR eComponentNotReg = 0x80020002;
217 static const P6ERR eDllError = 0x80020003;
218 static const P6ERR eDllNotCom = 0x80020004;
219 static const P6ERR eDllNotFound = 0x80020005;
220 static const P6ERR eNoAgregation = 0x80020006;
221 static const P6ERR eNoInterface = 0x80020007;
222 static const P6ERR eRegDBCorrupt = 0x80020008;
223 static const P6ERR eUnloadDllError = 0x80020009;
224 static const P6ERR eInvalidLicense = 0x8002000a;
225 static const P6ERR eInvalidRefcount = 0x8002000b;
230 static const P6ERR eObjectCloseMismatch = 0x80030001;
231 static const P6ERR eArrayCloseMismatch = 0x80030002;
236 static const P6ERR eMissingKey = 0x80040001;
237 static const P6ERR eWrongKeyType = 0x80040002;
238 static const P6ERR eWrongKeyClass = 0x80040003;
239 static const P6ERR eWrongKeySize = 0x80040004;
240 static const P6ERR eWrongKeyVersion = 0x80040005;
241 static const P6ERR eWrongKeyId = 0x80040006;
242 static const P6ERR eInvalidCipher = 0x80040007;
243 static const P6ERR eReadPrivateKey = 0x80040008;
244 static const P6ERR eReadPublicKey = 0x80040009;
245 static const P6ERR eKeyWriteFailed = 0x8004000a;
246 static const P6ERR eKeyGenFailed = 0x8004000b;
247 static const P6ERR eKeyGenParamsFailed = 0x8004000c;
248 static const P6ERR eInvalidCert = 0x8004000d;
249 static const P6ERR eInvalidHMAC = 0x8004000e;
250 static const P6ERR ePrimeNotSafe = 0x8004000f;
251 static const P6ERR eBadGenerator = 0x80040010;
252 static const P6ERR eSignatureMismatch = 0x80040011;
253 static const P6ERR eAESCounterNotSet = 0x80040012;
254 static const P6ERR eECCurveNotFound = 0x80040013;
255 static const P6ERR eInvalidPassPhrase = 0x80040014;
256 static const P6ERR ePassPhraseRequired = 0x80040015;
257 static const P6ERR ePublicExponent = 0x80040016;
262 static const P6ERR eX509CantGetIssuerCert = 0x80050001;
263 static const P6ERR eX509CantGetCrl = 0x80050002;
264 static const P6ERR eX509CantDecryptCertSig = 0x80050003;
265 static const P6ERR eX509CantDecryptCertCrl = 0x80050004;
266 static const P6ERR eX509CantDecodeIssuePubKey = 0x80050005;
267 static const P6ERR eX509CertSigFailure = 0x80050006;
268 static const P6ERR eX509CrlSigFailure = 0x80050007;
269 static const P6ERR eX509CertNotYetValid = 0x80050008;
270 static const P6ERR eX509CertExpired = 0x80050009;
271 static const P6ERR eX509CrlNotYetValid = 0x8005000a;
272 static const P6ERR eX509CrlExpired = 0x8005000b;
273 static const P6ERR eX509CertNotBeforeField = 0x8005000c;
274 static const P6ERR eX509CertNotAfterField = 0x8005000d;
275 static const P6ERR eX509CertCrlLastUpdateField = 0x8005000e;
276 static const P6ERR eX509CertCrlNextUpdateField = 0x8005000f;
277 static const P6ERR eX509CertDepthZeroSelfSigned = 0x80050010;
278 static const P6ERR eX509CertSelfSignedCertInChain = 0x80050011;
279 static const P6ERR eX509CertCantGetIssuerLocally = 0x80050012;
280 static const P6ERR eX509CertCantVerifyLeafSig = 0x80050013;
281 static const P6ERR eX509CertChainTooLong = 0x80050014;
282 static const P6ERR eX509CertRevoked = 0x80050015;
283 static const P6ERR eX509CertInvalidCA = 0x80050016;
284 static const P6ERR eX509CertPathTooLong = 0x80050017;
285 static const P6ERR eX509CertInvalidPurpose = 0x80050018;
286 static const P6ERR eX509CertUntrusted = 0x80050019;
287 static const P6ERR eX509CertRejected = 0x8005001a;
289 static const P6ERR eX509SubjectIssuerMismatch = 0x8005001b;
290 static const P6ERR eX509AkidSkidMismatch = 0x8005001c;
291 static const P6ERR eX509AkidIssuerSerialMismatch = 0x8005001d;
292 static const P6ERR eX509CertKeyUsageNoSign = 0x8005001e;
293 static const P6ERR eX509CrlCantGetIssuer = 0x8005001f;
294 static const P6ERR eX509CertUnhandleCriticalExtension = 0x80050020;
295 static const P6ERR eX509CrlKeyUsageNoSign = 0x80050021;
296 static const P6ERR eX509CrlUnhandleCriticalExtension = 0x80050022;
297 static const P6ERR eX509InvalidNonCA = 0x80050023;
298 static const P6ERR eX509ProxyPathTooLong = 0x80050024;
299 static const P6ERR eX509KeyUsageNoDigitalSignature = 0x80050025;
300 static const P6ERR eX509ProxyCertsNotAllowed = 0x80050026;
301 static const P6ERR eX509CertInvalidExtension = 0x80050027;
302 static const P6ERR eX509CertInvalidPolicyExtension = 0x80050028;
303 static const P6ERR eX509CertNoExpicitPolicy = 0x80050029;
304 static const P6ERR eX509DifferentCrlScope = 0x8005002a;
305 static const P6ERR eX509UnsupportedExensionFeature = 0x8005002b;
306 static const P6ERR eX509UnnestedResource = 0x8005002c;
307 static const P6ERR eX509PermittedViolation = 0x8005002d;
308 static const P6ERR eX509ExcludedViolation = 0x8005002e;
309 static const P6ERR eX509SubtreeMinMax = 0x8005002f;
310 static const P6ERR eX509UnsupportedContraintType = 0x80050030;
311 static const P6ERR eX509UnsupportedContraintSyntax = 0x80050031;
312 static const P6ERR eX509UnsupportedNameSyntax = 0x80050032;
313 static const P6ERR eX509CrlPathValidation = 0x80050033;
314 static const P6ERR eX509ApplicationVerification = 0x80050034;
319 static const P6ERR eSSLEngError = 0x80060000;
320 static const P6ERR eSSLEngWantRead = 0x80060001;
321 static const P6ERR eSSLEngWantWrite = 0x80060002;
322 static const P6ERR eSSLEngWantX509Lookup = 0x80060003;
323 static const P6ERR eSSLEngSyscall = 0x80060004;
324 static const P6ERR eSSLEngZeroReturn = 0x80060005;
325 static const P6ERR eSSLEngWantConnect = 0x80060006;
326 static const P6ERR eSSLEngWantAccept = 0x80060007;
327 static const P6ERR eSSLEngMissingPeerCert = 0x80060008;
328 static const P6ERR eSSLEngHostnameMismatch = 0x80060009;
329 static const P6ERR eSSLEngHandshake = 0x80060010;
334 static const P6ERR ePkcs11 = 0x80070000;
335 static const P6ERR ePkcs11InactiveSlot = 0x80070001;
336 static const P6ERR ePkcs11BadHSMResponse = 0x80070002;
337 static const P6ERR ePkcs11NoAttribute = 0x80070003;
338 static const P6ERR ePkcs11AttributeList = 0x80070004;
339 static const P6ERR ePkcs11BadPinLen = 0x80070008;
344 static const P6ERR eMostCallClose = 0x80080001;
345 static const P6ERR eBindRange = 0x80080002;
346 static const P6ERR eSQLError = 0x80080003;
347 static const P6ERR eValueNULL = 0x80080004;
348 static const P6ERR eConstraintViolation = 0x80080005;
349 static const P6ERR eSchema = 0x80080006;
350 static const P6ERR eCorrupt = 0x80080007;
351 static const P6ERR eNotADatabase = 0x80080008;
356 static const P6ERR eUnbalancedParens = 0x80090001;
357 static const P6ERR eBackTrackStackLimit = 0x80090002;
358 static const P6ERR eBackTrackStepLimit = 0x80090003;
359 static const P6ERR eMatchEmpty = 0x80090004;
364 static const P6ERR eNumberTooBig = 0x800B0001;
369 static const P6ERR eSignatureFault = 0x800C0001;
370 static const P6ERR eInsufficentEntropy = 0x800C0002;
371 static const P6ERR eInconsistentName = 0x800C0003;
372 static const P6ERR eNoBindingName = 0x800C0004;
373 static const P6ERR eV1TrapMsg = 0x800C0005;
374 static const P6ERR eTimeWrap = 0x800C0006;
379 static const P6ERR eMismatchedElements = 0x800D0001;
380 static const P6ERR eAttributeMismatch = 0x800D0002;
381 static const P6ERR eMissingTemplate = 0x800D0003;
382 static const P6ERR eMissingAttribute = 0x800D0004;
383 static const P6ERR eNotFoundHref = 0x800D0005;
384 static const P6ERR eTooManyIncludes = 0x800D0006;
385 static const P6ERR eAmbiguousGlobalVar = 0x800D0007;
386 static const P6ERR eAmbiguousTemplate = 0x800D0008;
387 static const P6ERR eTypeError = 0x800D0009;
388 static const P6ERR eCountError = 0x800D000A;
389 static const P6ERR eMissingParameter = 0x800D000B;
390 static const P6ERR eMissingNamespace = 0x800D000C;
391 static const P6ERR eMissingAttributeSet = 0x800D000D;
392 static const P6ERR eMissingOutput = 0x800D000E;
393 static const P6ERR eUnknownElement = 0x800D000F;
394 static const P6ERR eMissingCharacterMap = 0x800D0010;
395 static const P6ERR eNotValidXML = 0x800D0011;
396 static const P6ERR eMissingVariable = 0x800D0012;
401 static const P6ERR eRuleMissingIf = 0x800E0001;
402 static const P6ERR eRuleMissingThen = 0x800E0002;
403 static const P6ERR eRuleMissingAction = 0x800E0003;
404 static const P6ERR eRuleNotDefined = 0x800E0004;
405 static const P6ERR eRuleDuplicate = 0x800E0005;
406 static const P6ERR eRuleBadFocus = 0x800E0006;
407 static const P6ERR eRuleBadCall = 0x800E0007;
408 static const P6ERR eRuleNoVar = 0x800E0008;
409 static const P6ERR eInvalidSyntax = 0x800E0009;
414 static const P6ERR eBadDurationType = 0x800F0001;
415 static const P6ERR eBadIfThen = 0x800F0002;
416 static const P6ERR eBadIfThenElse = 0x800F0003;
417 static const P6ERR eBadForLoop = 0x800F0004;
418 static const P6ERR eBadSomeEvery = 0x800F0005;
419 static const P6ERR eUnknownCollation = 0x800F0006;
420 static const P6ERR eUnknownType = 0x800F0007;
425 static const P6ERR eGzBufferError = 0x80100001;
426 static const P6ERR eGzDataError = 0x80100002;
427 static const P6ERR eGzNeedDict = 0x80100003;
428 static const P6ERR eGzStreamEnd = 0x80100004;
429 static const P6ERR eGzStreamError = 0x80100005;
430 static const P6ERR eGzVersionError = 0x80100006;
431 static const P6ERR eGzIoErr = 0x80100007;
432 static const P6ERR eGzErrno = 0x80100008;
434 #ifdef __cplusplus
435 } // extern "C"
436 } // namespace
437 #endif
438 
439 
440 #endif
441 
Crypto library specific error codes.
Definition: p6err.h:62
Networking specific error code.
Definition: p6err.h:59
ERR_FACILITY
Defines the valid facilities possible for P6ERR&#39;s.
Definition: p6err.h:57
SNMP specific error codes.
Definition: p6err.h:68
JSON Specific errors.
Definition: p6err.h:61
XSLT specific error codes.
Definition: p6err.h:69
Regex specific error codes.
Definition: p6err.h:66
General purpose error codes.
Definition: p6err.h:58
[p6]COM specific error codes.
Definition: p6err.h:60
User defined facilities start here.
Definition: p6err.h:73
LDAP specific error codes.
Definition: p6err.h:67
Rule Engine specific error codes.
Definition: p6err.h:70
P6R API type definitions and macros.
Defines the max possible facility value.
Definition: p6err.h:74
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:141
Database specific error codes.
Definition: p6err.h:65
SSL engine specific error codes.
Definition: p6err.h:64
Certificate component specific error codes.
Definition: p6err.h:63
GZIP specific error codes.
Definition: p6err.h:72
XPath specific error codes.
Definition: p6err.h:71