Main Page | File List | File Members

ErrorCode.h

Go to the documentation of this file.
00001 /* -*- mode: c++; -*-
00002  *-----------------------------------------------------------------------------
00003  * $RCSfile: ErrorCode.h,v $
00004  *
00005  * See Copyright for the status of this software.
00006  *
00007  * The OpenSOAP Project
00008  * http://opensoap.jp/
00009  *-----------------------------------------------------------------------------
00010  */
00011 #ifndef OpenSOAP_ErrorCode_H
00012 #define OpenSOAP_ErrorCode_H
00013 
00021 /*
00022 =begin
00023 = OpenSOAP Error code definitions.
00024 =end
00025  */
00026 
00031 #define OPENSOAP_NO_ERROR (0)
00032 
00037 #define OPENSOAP_NOT_CATEGORIZE_ERROR   (0xffffffffL)
00038 
00043 #define OPENSOAP_IMPLEMENTATION_ERROR   (0x40000000L)
00044 
00049 #define OPENSOAP_YET_IMPLEMENTATION     (0x40000001L)
00050 
00055 #define OPENSOAP_UNSUPPORT_PROTOCOL     (0x40000002L)
00056 
00061 #define OPENSOAP_PARAMETER_BADVALUE     (0x20000001L)
00062 
00067 #define OPENSOAP_USERDEFINE_ERROR       (0x10000000L)
00068 
00073 #define OPENSOAP_MEM_ERROR      (0x00010000L)
00074 
00079 #define OPENSOAP_MEM_BADALLOC   (0x00010001L)
00080 
00085 #define OPENSOAP_MEM_OUTOFRANGE (0x00010002L)
00086 
00087 
00088 
00093 #define OPENSOAP_CHAR_ERROR             (0x00020000L)
00094 
00099 #define OPENSOAP_ICONV_NOT_IMPL         (0x00020001L)
00100 
00105 #define OPENSOAP_INVALID_MB_SEQUENCE    (0x00020002L)
00106 
00111 #define OPENSOAP_INCOMPLETE_MB_SEQUENCE (0x00020003L)
00112 
00117 #define OPENSOAP_UNKNOWN_CHARENCODE     (0x00020004L)
00118 
00123 #define OPENSOAP_SETLOCALEFAILURE       (0x00020005L)
00124 
00125 
00126 
00131 #define OPENSOAP_IO_ERROR       (0x00040000L)
00132 
00137 #define OPENSOAP_IO_READ_ERROR  (0x00040001L)
00138 
00143 #define OPENSOAP_IO_WRITE_ERROR (0x00040002L)
00144 
00149 #define OPENSOAP_FILE_ERROR             (0x00048000L)
00150 
00155 #define OPENSOAP_FILEOPEN_ERROR (0x00048001L)
00156 
00157 
00158 
00163 #define OPENSOAP_XML_ERROR                              (0x00080000L)
00164 
00169 #define OPENSOAP_XMLNODE_NOT_FOUND              (0x00080001L)
00170 
00175 #define OPENSOAP_XML_BADNAMESPACE               (0x00080002L)
00176 
00181 #define OPENSOAP_XML_NOHEADERBODY               (0x00080003L)
00182 
00187 #define OPENSOAP_XML_BADDOCUMENTTYPE    (0x00080004L)
00188 
00193 #define OPENSOAP_XML_BADMAKEDOCUMENT    (0x00080005L)
00194 
00199 #define OPENSOAP_XML_EMPTYDOCUMENT              (0x00080006L)
00200 
00205 #define OPENSOAP_XML_NOTXMLDOCUMENT             (0x00080007L)
00206 
00211 #define OPENSOAP_XML_NS_URI_UNMATCHED   (0x00080008L)
00212 
00213 
00214 
00219 #define OPENSOAP_SEC_ERROR                              (0x00100000L)
00220 
00225 #define OPENSOAP_SEC_KEYGEN_ERROR               (0x00100001L)
00226 
00231 #define OPENSOAP_SEC_SIGNGEN_ERROR              (0x00100002L)
00232 
00237 #define OPENSOAP_SEC_SIGNVERIFY_ERROR   (0x00100003L)
00238 
00243 #define OPENSOAP_SEC_ENCRYPT_ERROR              (0x00100004L)
00244 
00249 #define OPENSOAP_SEC_DECRYPT_ERROR              (0x00100005L)
00250 
00255 #define OPENSOAP_TRANSPORT_ERROR                (0x00200000L)
00256 
00261 #define OPENSOAP_TRANSPORT_INVOKE_ERROR (0x00210000L)
00262 
00268 #define OPENSOAP_TRANSPORT_HOST_NOT_FOUND       (0x00210001L)
00269 
00275 #define OPENSOAP_TRANSPORT_CONNECTION_REFUSED   (0x00210002L)
00276 
00281 #define OPENSOAP_TRANSPORT_CONNECTION_TIMEOUT   (0x00210003L)
00282 
00287 #define OPENSOAP_TRANSPORT_NETWORK_UNREACH      (0x00210004L)
00288 
00293 #define OPENSOAP_TRANSPORT_HOST_UNREACH (0x00210005L)
00294 
00299 #define OPENSOAP_TRANSPORT_HTTP_ERROR   (0x00220000L)
00300 
00305 #define OPENSOAP_TRANSPORT_IS_HTTP_ERROR(x)     (((x) & (OPENSOAP_TRANSPORT_HTTP_ERROR)) == (OPENSOAP_TRANSPORT_HTTP_ERROR))
00306 
00311 #define OPENSOAP_TRANSPORT_GET_HTTP_ERROR(x) \
00312         ((x) & ~(OPENSOAP_TRANSPORT_HTTP_ERROR))
00313 
00318 #define OPENSOAP_TRANSPORT_SET_HTTP_ERROR(x) \
00319         ((x) | (OPENSOAP_TRANSPORT_HTTP_ERROR))
00320 
00325 #define OPENSOAP_TRANSPORT_SSL_ERROR    (0x00240000L)
00326 
00331 #define OPENSOAP_TRANSPORT_SSL_VERSION_ERROR    (0x00240001L)
00332 
00337 #define OPENSOAP_TRANSPORT_SSL_CERTFILE_ERROR   (0x00240002L)
00338 
00339 /*
00340 =begin
00341 = OpenSOAP Error code judge macro.
00342 =end
00343  */
00344 
00349 #define OPENSOAP_SUCCEEDED(err) (!(err))
00350 
00355 #define OPENSOAP_FAILED(err)  (err)
00356 
00357 #endif  /* OpenSOAP_ErrorCode_H */

Generated on Mon Oct 18 18:29:43 2004 for OpenSOAP by doxygen 1.3.6