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 namespace P6R {
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
44 #define P6ERR_STATUS_SUCCESS 0
45 #define P6ERR_STATUS_FAILURE 1
46 #define P6ERR_STATUS(err) (((err) >> 31) & 0x1)
47 #define P6ERR_FACILITY(err) (((err) >> 16 ) & 0x7fff)
48 #define P6ERR_CODE(err) ((err) & 0xffff)
49 #define P6MAKEERR(s,f,c) ((P6ERR)(((P6UINT32)(s)<<31)|((P6UINT32)(f)<<16)|((P6UINT32)(c))))
50 #define P6SUCCEEDED(err) (P6ERR_STATUS_SUCCESS == P6ERR_STATUS((err)))
51 #define P6FAILED(err) (P6ERR_STATUS_FAILURE == P6ERR_STATUS((err)))
52 
58 typedef enum {
59  P6EF_GENERAL = 0x0,
60  P6EF_NETWORK = 0x1,
61  P6EF_COM = 0x2,
62  P6EF_DCOM = 0x3,
63  P6EF_MINUSER = 0x2000,
64  P6EF_MAX = 0x7fff
65 } ERR_FACILITY;
66 
71 static const P6ERR eOk = 0L;
72 static const P6ERR eAborted = 0x80000001;
73 static const P6ERR eAccess = 0x80000002;
74 static const P6ERR eAccessFault = 0x80000003;
75 static const P6ERR eAlreadyInitialized = 0x80000004;
76 static const P6ERR eAlreadyRegistered = 0x80000005;
77 static const P6ERR eBusy = 0x80000006;
78 static const P6ERR eCompleted = 0x00000007;
79 static const P6ERR eDeviceFull = 0x80000008;
80 static const P6ERR eEndOfFile = 0x80000009;
81 static const P6ERR eExists = 0x8000000a;
82 static const P6ERR eFail = 0x8000000b;
83 static const P6ERR eFileTooBig = 0x8000000c;
84 static const P6ERR eFormatError = 0x8000000d;
85 static const P6ERR eInternalError = 0x8000000e;
86 static const P6ERR eInterrupted = 0x8000000f;
87 static const P6ERR eInvalidArg = 0x80000010;
88 static const P6ERR eInvalidDescriptor = 0x80000011;
89 static const P6ERR eInvalidHandle = 0x80000012;
90 static const P6ERR eInvalidPriority = 0x80000013;
91 static const P6ERR eInvalidState = 0x80000014;
92 static const P6ERR eInvalidVersion = 0x80000015;
93 static const P6ERR eIoError = 0x80000016;
94 static const P6ERR eLicenseMissing = 0x80000017;
95 static const P6ERR eLicenseViolation = 0x80000018;
96 static const P6ERR eNameTooLong = 0x80000019;
97 static const P6ERR eNoChildren = 0x8000001a;
98 static const P6ERR eNoExec = 0x8000001b;
99 static const P6ERR eNoMemory = 0x8000001c;
100 static const P6ERR eNoProcessHandles = 0x8000001d;
101 static const P6ERR eNoSystemHandles = 0x8000001e;
102 static const P6ERR eNotADir = 0x8000001f;
103 static const P6ERR eNotEmpty = 0x80000020;
104 static const P6ERR eNotFound = 0x80000021;
105 static const P6ERR eNotImplemented = 0x80000022;
106 static const P6ERR eNotInitialized = 0x80000023;
107 static const P6ERR eNotSupported = 0x80000024;
108 static const P6ERR ePathNotFound = 0x80000025;
109 static const P6ERR eSeek = 0x80000026;
110 static const P6ERR eShuttingDown = 0x80000027;
111 static const P6ERR eThreadCreateFailed = 0x80000028;
112 static const P6ERR eTimeout = 0x80000029;
113 static const P6ERR eTooBig = 0x8000002a;
114 static const P6ERR eTooManyOpenFiles = 0x8000002b;
115 static const P6ERR eTooSmall = 0x8000002c;
116 static const P6ERR eTryAgain = 0x8000002d;
117 static const P6ERR eUnsupported = 0x8000002e;
118 static const P6ERR eWouldBlock = 0x8000002f;
119 static const P6ERR eEndOfRecord = 0x80000030;
120 static const P6ERR eSharing = 0x80000031;
121 static const P6ERR eLocked = 0x80000032;
122 static const P6ERR eRead = 0x80000033;
123 static const P6ERR eWrite = 0x80000034;
124 static const P6ERR eCryptoUnavailable = 0x80000035;
125 static const P6ERR ePending = 0x80000036;
126 static const P6ERR eInvalidURI = 0x80000037;
127 static const P6ERR eDisabled = 0x80000038;
128 static const P6ERR eFailAndException = 0x80000039;
129 static const P6ERR eServiceConnect = 0x8000003a;
130 static const P6ERR eServiceNotFound = 0x8000003b;
131 static const P6ERR eServiceNotStarted = 0x8000003c;
132 static const P6ERR eServiceDisabled = 0x8000003d;
133 static const P6ERR eServiceRunning = 0x8000003e;
134 static const P6ERR eModuleNotFound = 0x8000003f;
135 static const P6ERR eProcNotFound = 0x80000040;
136 static const P6ERR eRange = 0x80000041;
137 static const P6ERR eSignatureMissing = 0x80000042;
138 static const P6ERR eFileNotFound = 0x80000043;
139 static const P6ERR ePartial = 0x80000044;
144 static const P6ERR eAddrInUse = 0x80010001;
145 static const P6ERR eAddrNotAvail = 0x80010002;
146 static const P6ERR eAlreadyBound = 0x80010003;
147 static const P6ERR eAlreadyConn = 0x80010004;
148 static const P6ERR eBadAddr = 0x80010005;
149 static const P6ERR eBadMsg = 0x80010006;
150 static const P6ERR eBadProtocol = 0x80010007;
151 static const P6ERR eConnAborted = 0x80010008;
152 static const P6ERR eConnClosed = 0x80010009;
153 static const P6ERR eConnRefused = 0x8001000a;
154 static const P6ERR eConnReset = 0x8001000b;
155 static const P6ERR eDestAddrReq = 0x8001000c;
156 static const P6ERR eHostNotFound = 0x8001000d;
157 static const P6ERR eHostUnreachable = 0x8001000e;
158 static const P6ERR eInProgress = 0x8001000f;
159 static const P6ERR eNetDown = 0x80010010;
160 static const P6ERR eNetUnreachable = 0x80010011;
161 static const P6ERR eNotBound = 0x80010012;
162 static const P6ERR eNotConn = 0x80010013;
163 static const P6ERR eNotSock = 0x80010014;
164 static const P6ERR eProtoError = 0x80010015;
165 static const P6ERR eProtoType = 0x80010016;
166 static const P6ERR eShutdown = 0x80010017;
167 static const P6ERR eSocket = 0x80010018;
168 static const P6ERR eUnreachable = 0x80010019;
169 static const P6ERR eUnsupAddrFam = 0x8001001a;
170 static const P6ERR eUnsupAddrType = 0x8001001b;
171 static const P6ERR eNameServerErr = 0x8001001c;
172 static const P6ERR eNoAddress = 0x8001001d;
173 static const P6ERR eNotAsync = 0x8001001e;
174 static const P6ERR eNoAssoc = 0x8001001f;
175 static const P6ERR eNetPrototype = 0x80010020;
176 static const P6ERR eNetNoProtoOpt = 0x80010021;
177 static const P6ERR eNetUnsupProto = 0x80010022;
178 static const P6ERR eNetUnsupSocket = 0x80010023;
179 static const P6ERR eNetUnsupOp = 0x80010024;
180 static const P6ERR eNetUnsupProtoFam = 0x80010025;
181 static const P6ERR eNetReset = 0x80010026;
182 static const P6ERR eNetNoBufs = 0x80010027;
183 static const P6ERR eNetShutdown = 0x80010028;
184 static const P6ERR eNetTooManyRefs = 0x80010029;
185 static const P6ERR eNetLoop = 0x8001002a;
186 static const P6ERR eNetNameTooLong = 0x8001002b;
187 static const P6ERR eNetHostDown = 0x8001002c;
188 static const P6ERR eNetNotEmpty = 0x8001002d;
189 static const P6ERR eNetTooManyProcs = 0x8001002e;
190 static const P6ERR eNetTooManyUsers = 0x8001002f;
191 static const P6ERR eNetDiskQuota = 0x80010030;
192 static const P6ERR eNetStale = 0x80010031;
193 static const P6ERR eNetRemote = 0x80010032;
194 static const P6ERR eNetDisConn = 0x80010033;
195 static const P6ERR eNetIoPending = 0x80010034;
196 static const P6ERR eNetFiltered = 0x80010035;
202 static const P6ERR eComponentNotFound = 0x80020001;
203 static const P6ERR eComponentNotReg = 0x80020002;
204 static const P6ERR eDllError = 0x80020003;
205 static const P6ERR eDllNotCom = 0x80020004;
206 static const P6ERR eDllNotFound = 0x80020005;
207 static const P6ERR eNoAgregation = 0x80020006;
208 static const P6ERR eNoInterface = 0x80020007;
209 static const P6ERR eRegDBCorrupt = 0x80020008;
210 static const P6ERR eUnloadDllError = 0x80020009;
211 static const P6ERR eInvalidLicense = 0x8002000a;
212 static const P6ERR eInvalidRefcount = 0x8002000b;
217 static const P6ERR eObjectCloseMismatch = 0x80030001;
218 static const P6ERR eArrayCloseMismatch = 0x80030002;
223 static const P6ERR eMissingKey = 0x80040001;
224 static const P6ERR eWrongKeyType = 0x80040002;
225 static const P6ERR eWrongKeyClass = 0x80040003;
226 static const P6ERR eWrongKeySize = 0x80040004;
227 static const P6ERR eWrongKeyVersion = 0x80040005;
228 static const P6ERR eWrongKeyId = 0x80040006;
229 static const P6ERR eInvalidCipher = 0x80040007;
230 static const P6ERR eReadPrivateKey = 0x80040008;
231 static const P6ERR eReadPublicKey = 0x80040009;
232 static const P6ERR eKeyWriteFailed = 0x8004000a;
233 static const P6ERR eKeyGenFailed = 0x8004000b;
234 static const P6ERR eKeyGenParamsFailed = 0x8004000c;
235 static const P6ERR eInvalidCert = 0x8004000d;
236 static const P6ERR eInvalidHMAC = 0x8004000e;
237 static const P6ERR ePrimeNotSafe = 0x8004000f;
238 static const P6ERR eBadGenerator = 0x80040010;
239 static const P6ERR eSignatureMismatch = 0x80040011;
240 static const P6ERR eAESCounterNotSet = 0x80040012;
245 static const P6ERR eX509CantGetIssuerCert = 0x80050001;
246 static const P6ERR eX509CantGetCrl = 0x80050002;
247 static const P6ERR eX509CantDecryptCertSig = 0x80050003;
248 static const P6ERR eX509CantDecryptCertCrl = 0x80050004;
249 static const P6ERR eX509CantDecodeIssuePubKey = 0x80050005;
250 static const P6ERR eX509CertSigFailure = 0x80050006;
251 static const P6ERR eX509CrlSigFailure = 0x80050007;
252 static const P6ERR eX509CertNotYetValid = 0x80050008;
253 static const P6ERR eX509CertExpired = 0x80050009;
254 static const P6ERR eX509CrlNotYetValid = 0x8005000a;
255 static const P6ERR eX509CrlExpired = 0x8005000b;
256 static const P6ERR eX509CertNotBeforeField = 0x8005000c;
257 static const P6ERR eX509CertNotAfterField = 0x8005000d;
258 static const P6ERR eX509CertCrlLastUpdateField = 0x8005000e;
259 static const P6ERR eX509CertCrlNextUpdateField = 0x8005000f;
260 static const P6ERR eX509CertDepthZeroSelfSigned = 0x80050010;
261 static const P6ERR eX509CertSelfSignedCertInChain = 0x80050011;
262 static const P6ERR eX509CertCantGetIssuerLocally = 0x80050012;
263 static const P6ERR eX509CertCantVerifyLeafSig = 0x80050013;
264 static const P6ERR eX509CertChainTooLong = 0x80050014;
265 static const P6ERR eX509CertRevoked = 0x80050015;
266 static const P6ERR eX509CertInvalidCA = 0x80050016;
267 static const P6ERR eX509CertPathTooLong = 0x80050017;
268 static const P6ERR eX509CertInvalidPurpose = 0x80050018;
269 static const P6ERR eX509CertUntrusted = 0x80050019;
270 static const P6ERR eX509CertRejected = 0x8005001a;
272 static const P6ERR eX509SubjectIssuerMismatch = 0x8005001b;
273 static const P6ERR eX509AkidSkidMismatch = 0x8005001c;
274 static const P6ERR eX509AkidIssuerSerialMismatch = 0x8005001d;
275 static const P6ERR eX509CertKeyUsageNoSign = 0x8005001e;
276 static const P6ERR eX509CrlCantGetIssuer = 0x8005001f;
277 static const P6ERR eX509CertUnhandleCriticalExtension = 0x80050020;
278 static const P6ERR eX509CrlKeyUsageNoSign = 0x80050021;
279 static const P6ERR eX509CrlUnhandleCriticalExtension = 0x80050022;
280 static const P6ERR eX509InvalidNonCA = 0x80050023;
281 static const P6ERR eX509ProxyPathTooLong = 0x80050024;
282 static const P6ERR eX509KeyUsageNoDigitalSignature = 0x80050025;
283 static const P6ERR eX509ProxyCertsNotAllowed = 0x80050026;
284 static const P6ERR eX509CertInvalidExtension = 0x80050027;
285 static const P6ERR eX509CertInvalidPolicyExtension = 0x80050028;
286 static const P6ERR eX509CertNoExpicitPolicy = 0x80050029;
287 static const P6ERR eX509DifferentCrlScope = 0x8005002a;
288 static const P6ERR eX509UnsupportedExensionFeature = 0x8005002b;
289 static const P6ERR eX509UnnestedResource = 0x8005002c;
290 static const P6ERR eX509PermittedViolation = 0x8005002d;
291 static const P6ERR eX509ExcludedViolation = 0x8005002e;
292 static const P6ERR eX509SubtreeMinMax = 0x8005002f;
293 static const P6ERR eX509UnsupportedContraintType = 0x80050030;
294 static const P6ERR eX509UnsupportedContraintSyntax = 0x80050031;
295 static const P6ERR eX509UnsupportedNameSyntax = 0x80050032;
296 static const P6ERR eX509CrlPathValidation = 0x80050033;
297 static const P6ERR eX509ApplicationVerification = 0x80050034;
299 static const P6ERR eSSLEngError = 0x80060000;
300 static const P6ERR eSSLEngWantRead = 0x80060001;
301 static const P6ERR eSSLEngWantWrite = 0x80060002;
302 static const P6ERR eSSLEngWantX509Lookup = 0x80060003;
303 static const P6ERR eSSLEngSyscall = 0x80060004;
304 static const P6ERR eSSLEngZeroReturn = 0x80060005;
305 static const P6ERR eSSLEngWantConnect = 0x80060006;
306 static const P6ERR eSSLEngWantAccept = 0x80060007;
307 static const P6ERR eSSLEngMissingPeerCert = 0x80060008;
308 static const P6ERR eSSLEngHostnameMismatch = 0x80060009;
309 static const P6ERR eSSLEngHandshake = 0x80060010;
314 static const P6ERR eMostCallClose = 0x80080001;
315 static const P6ERR eBindRange = 0x80080002;
316 static const P6ERR eSQLError = 0x80080003;
317 static const P6ERR eValueNULL = 0x80080004;
322 static const P6ERR eUnbalancedParens = 0x80090001;
323 static const P6ERR eBackTrackStackLimit = 0x80090002;
324 static const P6ERR eBackTrackStepLimit = 0x80090003;
325 static const P6ERR eMatchEmpty = 0x80090004;
330 static const P6ERR eNumberTooBig = 0x800B0001;
335 static const P6ERR eSignatureFault = 0x800C0001;
336 static const P6ERR eInsufficentEntropy = 0x800C0002;
337 static const P6ERR eInconsistentName = 0x800C0003;
338 static const P6ERR eNoBindingName = 0x800C0004;
339 static const P6ERR eV1TrapMsg = 0x800C0005;
340 static const P6ERR eTimeWrap = 0x800C0006;
345 static const P6ERR eMismatchedElements = 0x800D0001;
346 static const P6ERR eAttributeMismatch = 0x800D0002;
347 static const P6ERR eMissingTemplate = 0x800D0003;
348 static const P6ERR eMissingAttribute = 0x800D0004;
349 static const P6ERR eNotFoundHref = 0x800D0005;
350 static const P6ERR eTooManyIncludes = 0x800D0006;
351 static const P6ERR eAmbiguousGlobalVar = 0x800D0007;
352 static const P6ERR eAmbiguousTemplate = 0x800D0008;
353 static const P6ERR eTypeError = 0x800D0009;
354 static const P6ERR eCountError = 0x800D000A;
355 static const P6ERR eMissingParameter = 0x800D000B;
356 static const P6ERR eMissingNamespace = 0x800D000C;
357 static const P6ERR eMissingAttributeSet = 0x800D000D;
358 static const P6ERR eMissingOutput = 0x800D000E;
359 static const P6ERR eUnknownElement = 0x800D000F;
360 static const P6ERR eMissingCharacterMap = 0x800D0010;
361 static const P6ERR eNotValidXML = 0x800D0011;
362 static const P6ERR eMissingVariable = 0x800D0012;
367 static const P6ERR eRuleMissingIf = 0x800E0001;
368 static const P6ERR eRuleMissingThen = 0x800E0002;
369 static const P6ERR eRuleMissingAction = 0x800E0003;
370 static const P6ERR eRuleNotDefined = 0x800E0004;
371 static const P6ERR eRuleDuplicate = 0x800E0005;
372 static const P6ERR eRuleBadFocus = 0x800E0006;
373 static const P6ERR eRuleBadCall = 0x800E0007;
374 static const P6ERR eRuleNoVar = 0x800E0008;
375 static const P6ERR eInvalidSyntax = 0x800E0009;
380 static const P6ERR eBadDurationType = 0x800F0001;
381 static const P6ERR eBadIfThen = 0x800F0002;
382 static const P6ERR eBadIfThenElse = 0x800F0003;
383 static const P6ERR eBadForLoop = 0x800F0004;
384 static const P6ERR eBadSomeEvery = 0x800F0005;
385 static const P6ERR eUnknownCollation = 0x800F0006;
386 static const P6ERR eUnknownType = 0x800F0007;
391 static const P6ERR eGzBufferError = 0x80100001;
392 static const P6ERR eGzDataError = 0x80100002;
393 static const P6ERR eGzNeedDict = 0x80100003;
394 static const P6ERR eGzStreamEnd = 0x80100004;
395 static const P6ERR eGzStreamError = 0x80100005;
396 static const P6ERR eGzVersionError = 0x80100006;
397 static const P6ERR eGzIoErr = 0x80100007;
398 static const P6ERR eGzErrno = 0x80100008;
400 #ifdef __cplusplus
401 }
402 #endif
403 
404 } // namespace
405 
406 #endif
407 
Networking specific error code.
Definition: p6err.h:60
ERR_FACILITY
Defines the valid facilities possible for P6ERR&#39;s.
Definition: p6err.h:58
General purpose error codes.
Definition: p6err.h:59
[p6]COM specific error codes.
Definition: p6err.h:61
RPC/Marshalling Failure.
Definition: p6err.h:62
User defined facilities start here.
Definition: p6err.h:63
P6R API type definitions and macros.
Defines the max possible facility value.
Definition: p6err.h:64
P6UINT32 P6ERR
COM err return type see P6ERR.h.
Definition: p6types.h:109