00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00225 #ifndef OpenSOAP_ErrorCode_H
00226 #define OpenSOAP_ErrorCode_H
00227
00228
00229
00230
00231
00232
00233
00234
00235 #define OPENSOAP_NO_ERROR (0)
00236
00237 #define OPENSOAP_NOT_CATEGORIZE_ERROR (0xffffffffL)
00238
00239 #define OPENSOAP_IMPLEMENTATION_ERROR (0x40000000L)
00240
00241 #define OPENSOAP_YET_IMPLEMENTATION (0x40000001L)
00242
00243 #define OPENSOAP_UNSUPPORT_PROTOCOL (0x40000002L)
00244
00245 #define OPENSOAP_PARAMETER_BADVALUE (0x20000001L)
00246
00247 #define OPENSOAP_USERDEFINE_ERROR (0x10000000L)
00248
00249 #define OPENSOAP_MEM_ERROR (0x00010000L)
00250
00251 #define OPENSOAP_MEM_BADALLOC (0x00010001L)
00252
00253 #define OPENSOAP_MEM_OUTOFRANGE (0x00010002L)
00254
00255
00256
00257 #define OPENSOAP_CHAR_ERROR (0x00020000L)
00258
00259 #define OPENSOAP_ICONV_NOT_IMPL (0x00020001L)
00260
00261 #define OPENSOAP_INVALID_MB_SEQUENCE (0x00020002L)
00262
00263 #define OPENSOAP_INCOMPLETE_MB_SEQUENCE (0x00020003L)
00264
00265 #define OPENSOAP_UNKNOWN_CHARENCODE (0x00020004L)
00266
00267 #define OPENSOAP_SETLOCALEFAILURE (0x00020005L)
00268
00269
00270
00271 #define OPENSOAP_IO_ERROR (0x00040000L)
00272
00273 #define OPENSOAP_IO_READ_ERROR (0x00040001L)
00274
00275 #define OPENSOAP_IO_WRITE_ERROR (0x00040002L)
00276
00277 #define OPENSOAP_FILE_ERROR (0x00048000L)
00278
00279 #define OPENSOAP_FILEOPEN_ERROR (0x00048001L)
00280
00281
00282
00283 #define OPENSOAP_XML_ERROR (0x00080000L)
00284
00285 #define OPENSOAP_XMLNODE_NOT_FOUND (0x00080001L)
00286
00287 #define OPENSOAP_XML_BADNAMESPACE (0x00080002L)
00288
00289 #define OPENSOAP_XML_NOHEADERBODY (0x00080003L)
00290
00291 #define OPENSOAP_XML_BADDOCUMENTTYPE (0x00080004L)
00292
00293 #define OPENSOAP_XML_BADMAKEDOCUMENT (0x00080005L)
00294
00295 #define OPENSOAP_XML_EMPTYDOCUMENT (0x00080006L)
00296
00297 #define OPENSOAP_XML_NOTXMLDOCUMENT (0x00080007L)
00298
00299 #define OPENSOAP_XML_NS_URI_UNMATCHED (0x00080008L)
00300
00301
00302
00303 #define OPENSOAP_SEC_ERROR (0x00100000L)
00304
00305 #define OPENSOAP_SEC_KEYGEN_ERROR (0x00100001L)
00306
00307 #define OPENSOAP_SEC_SIGNGEN_ERROR (0x00100002L)
00308
00309 #define OPENSOAP_SEC_SIGNVERIFY_ERROR (0x00100003L)
00310
00311 #define OPENSOAP_SEC_ENCRYPT_ERROR (0x00100004L)
00312
00313 #define OPENSOAP_SEC_DECRYPT_ERROR (0x00100005L)
00314
00315 #define OPENSOAP_TRANSPORT_ERROR (0x00200000L)
00316
00317 #define OPENSOAP_TRANSPORT_INVOKE_ERROR (0x00210000L)
00318
00319 #define OPENSOAP_TRANSPORT_HOST_NOT_FOUND (0x00210001L)
00320
00321 #define OPENSOAP_TRANSPORT_CONNECTION_REFUSED (0x00210002L)
00322
00323 #define OPENSOAP_TRANSPORT_CONNECTION_TIMEOUT (0x00210003L)
00324
00325 #define OPENSOAP_TRANSPORT_NETWORK_UNREACH (0x00210004L)
00326
00327 #define OPENSOAP_TRANSPORT_HOST_UNREACH (0x00210005L)
00328
00329 #define OPENSOAP_TRANSPORT_HTTP_ERROR (0x00220000L)
00330
00331 #define OPENSOAP_TRANSPORT_IS_HTTP_ERROR(x) (((x) & (OPENSOAP_TRANSPORT_HTTP_ERROR)) == (OPENSOAP_TRANSPORT_HTTP_ERROR))
00332
00333 #define OPENSOAP_TRANSPORT_GET_HTTP_ERROR(x) \
00334 ((x) & ~(OPENSOAP_TRANSPORT_HTTP_ERROR))
00335
00336 #define OPENSOAP_TRANSPORT_SET_HTTP_ERROR(x) \
00337 ((x) | (OPENSOAP_TRANSPORT_HTTP_ERROR))
00338
00339 #define OPENSOAP_TRANSPORT_SSL_ERROR (0x00240000L)
00340
00341 #define OPENSOAP_TRANSPORT_SSL_VERSION_ERROR (0x00240001L)
00342
00343 #define OPENSOAP_TRANSPORT_SSL_CERTFILE_ERROR (0x00240002L)
00344
00345
00346
00347
00348
00349
00350
00351 #define OPENSOAP_SUCCEEDED(err) (!(err))
00352
00353 #define OPENSOAP_FAILED(err) (err)
00354
00355 #endif