- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# axutil_error.h

    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 #ifndef AXUTIL_ERROR_H
    00019 #define AXUTIL_ERROR_H
    00020
    00021 #include <axutil_utils_defines.h>
    00022 #include <axutil_allocator.h>
    00023
    00024 #ifdef __cplusplus
    00025 extern "C"
    00026 {
    00027 #endif
    00028
    00029
    00030 #define AXUTIL_ERROR_MESSAGE_BLOCK_SIZE 512
    00031 #define AXUTIL_ERROR_LAST AXUTIL_ERROR_MESSAGE_BLOCK_SIZE
    00032 #define NEETHI_ERROR_CODES_START AXIS2_ERROR_LAST
    00033 #define RAMPART_ERROR_CODES_START (NEETHI_ERROR_CODES_START + AXUTIL_ERROR_MESSAGE_BLOCK_SIZE)
    00034 #define SANDESHA2_ERROR_CODES_START (RAMPART_ERROR_CODES_START + AXUTIL_ERROR_MESSAGE_BLOCK_SIZE)
    00035 #define SAVAN_ERROR_CODES_START (SANDESHA2_ERROR_CODES_START + AXUTIL_ERROR_MESSAGE_BLOCK_SIZE)
    00036 #define USER_ERROR_CODES_START (SAVAN_ERROR_CODES_START + AXUTIL_ERROR_MESSAGE_BLOCK_SIZE)
    00037
    00038 /* AXUTIL_ERROR_MAX define the maximum size of the error array */
    00039 #define AXUTIL_ERROR_MAX (USER_ERROR_CODES_START + AXUTIL_ERROR_MESSAGE_BLOCK_SIZE)
    00040
    00041
    00047     enum axis2_status_codes
    00048     {
    00050         AXIS2_CRITICAL_FAILURE = -1,
    00051
    00053         AXIS2_FAILURE,
    00054
    00056         AXIS2_SUCCESS
    00057     };
    00058
    00064     enum axutil_error_codes
    00065     {
    00066
    00077         AXIS2_ERROR_NONE = 0,
    00078
    00079         /*
    00080          * Group - Common Errors
    00081          */
    00082
    00084         AXIS2_ERROR_NO_MEMORY,
    00085
    00087         AXIS2_ERROR_INVALID_NULL_PARAM,
    00088
    00089         /*
    00090          * Group - core:addr
    00091          */
    00092
    00093         /*
    00094          * Group - core:clientapi
    00095          */
    00096
    00098         AXIS2_ERROR_BLOCKING_INVOCATION_EXPECTS_RESPONSE,
    00099
    00101         AXIS2_ERROR_CANNOT_INFER_TRANSPORT,
    00102
    00104         AXIS2_ERROR_CLIENT_SIDE_SUPPORT_ONLY_ONE_CONF_CTX,
    00105         /* MEP cannot be NULL in MEP client */
    00106         AXIS2_ERROR_MEP_CANNOT_BE_NULL_IN_MEP_CLIENT,
    00107         /* MEP Mismatch */
    00108         AXIS2_ERROR_MEP_MISMATCH_IN_MEP_CLIENT,
    00109
    00111         AXIS2_ERROR_TWO_WAY_CHANNEL_NEEDS_ADDRESSING,
    00112
    00114         AXIS2_ERROR_UNKNOWN_TRANSPORT,
    00115         /* Unsupported SOAP style */
    00116         AXIS2_ERROR_UNSUPPORTED_TYPE,
    00117         /* Options object is not set */
    00118         AXIS2_ERROR_OPTIONS_OBJECT_IS_NOT_SET,
    00119         /*
    00120          * Group - core:clientapi:diclient
    00121          */
    00122
    00123         /*
    00124          * Group - core:context
    00125          */
    00126
    00128         AXIS2_ERROR_INVALID_SOAP_ENVELOPE_STATE,
    00129
    00131         AXIS2_ERROR_INVALID_STATE_MSG_CTX,
    00132
    00134         AXIS2_ERROR_INVALID_STATE_SVC,
    00135
    00137         AXIS2_ERROR_INVALID_STATE_SVC_GRP,
    00138
    00140         AXIS2_ERROR_SERVICE_NOT_YET_FOUND,
    00141
    00142         /*
    00143          * Group - core:deployment
    00144          */
    00145         /* Invalid phase found in phase validation */
    00146         AXI2_ERROR_INVALID_PHASE,
    00147         /* axis2.xml cannot be found */
    00148         AXIS2_ERROR_CONFIG_NOT_FOUND,
    00149         /* Data element of the OM Node is null */
    00150         AXIS2_ERROR_DATA_ELEMENT_IS_NULL,
    00151         /* In transport sender, Inflow is not allowed */
    00152         AXIS2_ERROR_IN_FLOW_NOT_ALLOWED_IN_TRS_OUT,
    00153
    00155         AXIS2_ERROR_INVALID_HANDLER_STATE,
    00156         /* Invalid Module Ref encountered */
    00157         AXIS2_ERROR_INVALID_MODUELE_REF,
    00158         /* Invalid Module Reference by Operation */
    00159         AXIS2_ERROR_INVALID_MODUELE_REF_BY_OP,
    00160         /* Invalid Module Configuration */
    00161         AXIS2_ERROR_INVALID_MODULE_CONF,
    00162         /* Description Builder is found to be in invalid state */
    00163         AXIS2_ERROR_INVALID_STATE_DESC_BUILDER,
    00164         /* Module Not Found */
    00165         AXIS2_ERROR_MODULE_NOT_FOUND,
    00166         /* Module Validation Failed */
    00167         AXIS2_ERROR_MODULE_VALIDATION_FAILED,
    00168
    00170         AXIS2_ERROR_MODULE_XML_NOT_FOUND_FOR_THE_MODULE,
    00171         /* No dispatcher found */
    00172         AXIS2_ERROR_NO_DISPATCHER_FOUND,
    00173         /* Operation name is missing */
    00174         AXIS2_ERROR_OP_NAME_MISSING,
    00175         /* In transport Receiver, Outflow is not allowed */
    00176         AXIS2_ERROR_OUT_FLOW_NOT_ALLOWED_IN_TRS_IN,
    00177         /* Repository name cannot be NULL */
    00178         AXIS2_ERROR_REPO_CAN_NOT_BE_NULL,
    00179         /* Repository in path does not exist */
    00180         AXIS2_ERROR_REPOSITORY_NOT_EXIST,
    00181         /* Repository Listener initialization failed */
    00182         AXIS2_ERROR_REPOS_LISTENER_INIT_FAILED,
    00183
    00185         AXIS2_ERROR_SERVICE_XML_NOT_FOUND,
    00186         /* Service Name Error */
    00187         AXIS2_ERROR_SVC_NAME_ERROR,
    00188         /* Transport Sender Error */
    00189         AXIS2_ERROR_TRANSPORT_SENDER_ERROR,
    00190         /* Path to Config can not be NULL */
    00191         AXIS2_PATH_TO_CONFIG_CAN_NOT_BE_NULL,
    00192         /* Invalid Service */
    00193         AXIS2_ERROR_INVALID_SVC,
    00194
    00195
    00196         /*
    00197          * Group - core:description
    00198          */
    00199         /* Cannot correlate message */
    00200         AXIS2_ERROR_CANNOT_CORRELATE_MSG,
    00201
    00203         AXIS2_ERROR_COULD_NOT_MAP_MEP_URI_TO_MEP_CONSTANT,
    00204         /* Invalid message addition , operation context completed */
    00205         AXIS2_ERROR_INVALID_MESSAGE_ADDITION,
    00206
    00208         AXIS2_ERROR_INVALID_STATE_MODULE_DESC,
    00209
    00211         AXIS2_ERROR_INVALID_STATE_PARAM_CONTAINER,
    00212
    00214         AXIS2_ERROR_MODULE_ALREADY_ENGAGED_TO_OP,
    00215
    00217         AXIS2_ERROR_MODULE_ALREADY_ENGAGED_TO_SVC,
    00218
    00220         AXIS2_ERROR_MODULE_ALREADY_ENGAGED_TO_SVC_GRP,
    00221
    00223         AXIS2_ERROR_PARAMETER_LOCKED_CANNOT_OVERRIDE,
    00224         /* schema list is empty or NULL in svc */
    00225         AXIS2_ERROR_EMPTY_SCHEMA_LIST,
    00226         /*
    00227          * Group - core:engine
    00228          */
    00229
    00231         AXIS2_ERROR_BEFORE_AFTER_HANDLERS_SAME,
    00232
    00234         AXIS2_ERROR_INVALID_HANDLER_RULES,
    00235         /* Invalid Module */
    00236         AXIS2_ERROR_INVALID_MODULE,
    00237
    00239         AXIS2_ERROR_INVALID_PHASE_FIRST_HANDLER,
    00240
    00242         AXIS2_ERROR_INVALID_PHASE_LAST_HANDLER,
    00243
    00245         AXIS2_ERROR_INVALID_STATE_CONF,
    00246
    00248         AXIS2_ERROR_INVALID_STATE_PROCESSING_FAULT_ALREADY,
    00249
    00251         AXIS2_ERROR_NOWHERE_TO_SEND_FAULT,
    00252
    00254         AXIS2_ERROR_PHASE_ADD_HANDLER_INVALID,
    00255
    00257         AXIS2_ERROR_PHASE_FIRST_HANDLER_ALREADY_SET,
    00258
    00260         AXIS2_ERROR_PHASE_LAST_HANDLER_ALREADY_SET,
    00261
    00264         AXIS2_ERROR_TWO_SVCS_CANNOT_HAVE_SAME_NAME,
    00265         /*
    00266          * Group - core:phase resolver
    00267          */
    00268         /* Invalid Module Ref */
    00269         AXIS2_ERROR_INVALID_MODULE_REF,
    00270         /* Invalid Phase */
    00271         AXIS2_ERROR_INVALID_PHASE,
    00272         /* No Transport Receiver is configured */
    00273         AXIS2_ERROR_NO_TRANSPORT_IN_CONFIGURED,
    00274         /* No Transport Sender is configured */
    00275         AXIS2_ERROR_NO_TRANSPORT_OUT_CONFIGURED,
    00276         /* Phase is not specified */
    00277         AXIS2_ERROR_PHASE_IS_NOT_SPECIFED,
    00278         /* Service module can not refer global phase */
    00279         AXIS2_ERROR_SERVICE_MODULE_CAN_NOT_REFER_GLOBAL_PHASE,
    00280
    00281         /*
    00282          * Group - core:wsdl
    00283          */
    00284
    00286         AXIS2_ERROR_WSDL_SCHEMA_IS_NULL,
    00287         /*
    00288          * Group - core:receivers
    00289          */
    00290         /* Om Element has invalid state */
    00291         AXIS2_ERROR_OM_ELEMENT_INVALID_STATE,
    00292         /* Om Elements do not match */
    00293         AXIS2_ERROR_OM_ELEMENT_MISMATCH,
    00294         /* RPC style SOAP body don't have a child element */
    00295         AXIS2_ERROR_RPC_NEED_MATCHING_CHILD,
    00296         /* Operation Description has unknown operation style  */
    00297         AXIS2_ERROR_UNKNOWN_STYLE,
    00298         /* String does not represent a valid NCName */
    00299         AXIS2_ERROR_STRING_DOES_NOT_REPRESENT_A_VALID_NC_NAME,
    00300         /*
    00301          * Group - core:transport
    00302          */
    00303
    00304         /*
    00305          * Group - core:transport:http
    00306          */
    00307         /* Error occurred in transport */
    00308         AXIS2_ERROR_HTTP_CLIENT_TRANSPORT_ERROR,
    00309
    00311         AXIS2_ERROR_HTTP_REQUEST_NOT_SENT,
    00312
    00314         AXIS2_ERROR_INVALID_HEADER,
    00315         /* Invalid header start line (request line or response line) */
    00316         AXIS2_ERROR_INVALID_HTTP_HEADER_START_LINE,
    00317         /* Transport protocol is unsupported by axis2 */
    00318         AXIS2_ERROR_INVALID_TRANSPORT_PROTOCOL,
    00319
    00321         AXIS2_ERROR_NULL_BODY,
    00322         /* A valid conf_ctx is reqd for the http worker */
    00323         AXIS2_ERROR_NULL_CONFIGURATION_CONTEXT,
    00324         /* HTTP version cannot be null in the status/request line */
    00325         AXIS2_ERROR_NULL_HTTP_VERSION,
    00326         /* Input stream is NULL in msg_ctx */
    00327         AXIS2_ERROR_NULL_IN_STREAM_IN_MSG_CTX,
    00328         /* OM output is NULL */
    00329         AXIS2_ERROR_NULL_OM_OUTPUT,
    00330         /* Null SOAP envelope in msg_ctx */
    00331         AXIS2_ERROR_NULL_SOAP_ENVELOPE_IN_MSG_CTX,
    00332         /* NULL stream in the http chucked stream */
    00333         AXIS2_ERROR_NULL_STREAM_IN_CHUNKED_STREAM,
    00334         /* We got a NULL stream in the response body */
    00335         AXIS2_ERROR_NULL_STREAM_IN_RESPONSE_BODY,
    00336
    00338         AXIS2_ERROR_NULL_URL,
    00340         AXIS2_ERROR_INVALID_URL_FORMAT,
    00342         AXIS2_ERROR_DUPLICATE_URL_REST_MAPPING,
    00343         /* We need transport_info in msg_ctx */
    00344         AXIS2_ERROR_OUT_TRNSPORT_INFO_NULL,
    00345         /*Content-Type header missing in HTTP response" */
    00346         AXIS2_ERROR_RESPONSE_CONTENT_TYPE_MISSING,
    00347
    00349         AXIS2_ERROR_RESPONSE_TIMED_OUT,
    00350
    00352         AXIS2_ERROR_RESPONSE_SERVER_SHUTDOWN,
    00353
    00355         AXIS2_ERROR_SOAP_ENVELOPE_OR_SOAP_BODY_NULL,
    00356         /* Error occurred in SSL engine */
    00357         AXIS2_ERROR_SSL_ENGINE,
    00358         /* Either axis2c cannot find certificates or the env variable is not set */
    00359         AXIS2_ERROR_SSL_NO_CA_FILE,
    00360         /* Error in writing the response in response writer */
    00361         AXIS2_ERROR_WRITING_RESPONSE,
    00362         /* Required parameter is missing in URL encoded request */
    00363         AXIS2_ERROR_REQD_PARAM_MISSING,
    00364         /* Unsupported schema type in REST */
    00365         AXIS2_ERROR_UNSUPPORTED_SCHEMA_TYPE,
    00366         /* Service or operation not found */
    00367         AXIS2_ERROR_SVC_OR_OP_NOT_FOUND,
    00368         /*
    00369          * Group - mod_addr
    00370          */
    00371         AXIS2_ERROR_NO_MSG_INFO_HEADERS,
    00372         /*
    00373          * Group - platforms
    00374          */
    00375
    00376         /*
    00377          * Group - utils
    00378          */
    00379
    00381         AXIS2_ERROR_COULD_NOT_OPEN_FILE,
    00382         /* Failed in creating DLL */
    00383         AXIS2_ERROR_DLL_CREATE_FAILED,
    00384         /* DLL loading failed */
    00385         AXIS2_ERROR_DLL_LOADING_FAILED,
    00386
    00388         AXIS2_ERROR_ENVIRONMENT_IS_NULL,
    00389         /* Axis2 File does not have a file name */
    00390         AXIS2_ERROR_FILE_NAME_NOT_SET,
    00391         /* DLL Description Info Object has invalid state */
    00392         AXIS2_ERROR_INVALID_STATE_DLL_DESC,
    00393         /* Failed in creating Handler */
    00394         AXIS2_ERROR_HANDLER_CREATION_FAILED,
    00395
    00397         AXIS2_ERROR_INDEX_OUT_OF_BOUNDS,
    00398
    00400         AXIS2_ERROR_INVALID_ADDRESS,
    00401
    00403         AXIS2_ERROR_INVALID_FD,
    00404
    00406         AXIS2_ERROR_INVALID_SOCKET,
    00407
    00409         AXIS2_ERROR_INVALID_STATE_PARAM,
    00410         /* Module create failed */
    00411         AXIS2_ERROR_MODULE_CREATION_FAILED,
    00412         /* Failed in creating Message Receiver */
    00413         AXIS2_ERROR_MSG_RECV_CREATION_FAILED,
    00414
    00416         AXIS2_ERROR_NO_SUCH_ELEMENT,
    00417
    00419         AXIS2_ERROR_SOCKET_BIND_FAILED,
    00420
    00422         AXIS2_ERROR_SOCKET_ERROR,
    00423         /* Listen failed for the server socket */
    00424         AXIS2_ERROR_SOCKET_LISTEN_FAILED,
    00425         /* Failed in creating Service Skeleton */
    00426         AXIS2_ERROR_SVC_SKELETON_CREATION_FAILED,
    00427         /* Failed in creating Transport Receiver */
    00428         AXIS2_ERROR_TRANSPORT_RECV_CREATION_FAILED,
    00429         /* Failed in creating Transport Sender */
    00430         AXIS2_ERROR_TRANSPORT_SENDER_CREATION_FAILED,
    00431         /* Generation of platform dependent uuid failed */
    00432         AXIS2_ERROR_UUID_GEN_FAILED,
    00433         /* Possible deadlock */
    00434         AXIS2_ERROR_POSSIBLE_DEADLOCK,
    00435         /*
    00436          * Group - WSDL
    00437          */
    00438         /* Interface or Port Type not found for the binding */
    00439         AXIS2_ERROR_INTERFACE_OR_PORT_TYPE_NOT_FOUND_FOR_THE_BINDING,
    00440         /* Interfaces or Ports not found for the partially built WOM */
    00441         AXIS2_ERROR_INTERFACES_OR_PORTS_NOT_FOUND_FOR_PARTIALLY_BUILT_WOM,
    00442
    00444         AXIS2_ERROR_INVALID_STATE_WSDL_OP,
    00445
    00447         AXIS2_ERROR_INVALID_STATE_WSDL_SVC,
    00448         /* Cannot determine MEP */
    00449         AXIS2_ERROR_MEP_CANNOT_DETERMINE_MEP,
    00450         /* Wsdl binding name cannot be NULL(Is required) */
    00451         AXIS2_ERROR_WSDL_BINDING_NAME_IS_REQUIRED,
    00452         /* PortType/Interface name cannot be null(Required) */
    00453         AXIS2_ERROR_WSDL_INTERFACE_NAME_IS_REQUIRED,
    00454         /* Wsdl parsing has resulted in an invalid state */
    00455         AXIS2_ERROR_WSDL_PARSER_INVALID_STATE,
    00456         /* Wsdl svc name cannot be null(Required) */
    00457         AXIS2_ERROR_WSDL_SVC_NAME_IS_REQUIRED,
    00458         /*
    00459          * Group - xml
    00460          */
    00461
    00462         /*
    00463          * Group - xml:attachments
    00464          */
    00466         AXIS2_ERROR_ATTACHMENT_MISSING,
    00467
    00468         /*
    00469          * Group - xml:om
    00470          */
    00471
    00473         AXIS2_ERROR_BUILDER_DONE_CANNOT_PULL,
    00474
    00476         AXIS2_ERROR_INVALID_BUILDER_STATE_CANNOT_DISCARD,
    00477
    00479         AXIS2_ERROR_INVALID_BUILDER_STATE_LAST_NODE_NULL,
    00480
    00482         AXIS2_ERROR_INVALID_DOCUMENT_STATE_ROOT_NULL,
    00483
    00485         AXIS2_ERROR_INVALID_DOCUMENT_STATE_UNDEFINED_NAMESPACE,
    00486
    00488         AXIS2_ERROR_INVALID_EMPTY_NAMESPACE_URI,
    00489
    00492         AXIS2_ERROR_ITERATOR_NEXT_METHOD_HAS_NOT_YET_BEEN_CALLED,
    00493
    00496         AXIS2_ERROR_ITERATOR_REMOVE_HAS_ALREADY_BEING_CALLED,
    00497
    00499         AXIS2_ERROR_XML_READER_ELEMENT_NULL,
    00500
    00502         AXIS2_ERROR_XML_READER_VALUE_NULL,
    00503         /*
    00504          * Group - xml:parser
    00505          */
    00506
    00508         AXIS2_ERROR_CREATING_XML_STREAM_READER,
    00509
    00511         AXIS2_ERROR_CREATING_XML_STREAM_WRITER,
    00512
    00514         AXIS2_ERROR_WRITING_ATTRIBUTE,
    00515
    00517         AXIS2_ERROR_WRITING_ATTRIBUTE_WITH_NAMESPACE,
    00518
    00520         AXIS2_ERROR_WRITING_ATTRIBUTE_WITH_NAMESPACE_PREFIX,
    00521
    00523         AXIS2_ERROR_WRITING_COMMENT,
    00524
    00526         AXIS2_ERROR_WRITING_DATA_SOURCE,
    00527
    00529         AXIS2_ERROR_WRITING_DEFAULT_NAMESPACE,
    00530
    00532         AXIS2_ERROR_WRITING_DTD,
    00533
    00535         AXIS2_ERROR_WRITING_EMPTY_ELEMENT,
    00536
    00538         AXIS2_ERROR_WRITING_EMPTY_ELEMENT_WITH_NAMESPACE,
    00539
    00541         AXIS2_ERROR_WRITING_EMPTY_ELEMENT_WITH_NAMESPACE_PREFIX,
    00542
    00544         AXIS2_ERROR_WRITING_END_DOCUMENT,
    00545
    00547         AXIS2_ERROR_WRITING_END_ELEMENT,
    00548
    00550         AXIS2_ERROR_WRITING_PROCESSING_INSTRUCTION,
    00551
    00553         AXIS2_ERROR_WRITING_START_DOCUMENT,
    00554
    00556         AXIS2_ERROR_WRITING_START_ELEMENT,
    00557
    00559         AXIS2_ERROR_WRITING_START_ELEMENT_WITH_NAMESPACE,
    00560
    00562         AXIS2_ERROR_WRITING_START_ELEMENT_WITH_NAMESPACE_PREFIX,
    00563
    00565         AXIS2_ERROR_WRITING_CDATA,
    00566
    00568         AXIS2_ERROR_XML_PARSER_INVALID_MEM_TYPE,
    00569
    00570         /*
    00571          * Group - xml:SOAP
    00572          */
    00573
    00575         AXIS2_ERROR_INVALID_BASE_TYPE,
    00576
    00578         AXIS2_ERROR_INVALID_SOAP_NAMESPACE_URI,
    00579
    00581         AXIS2_ERROR_INVALID_SOAP_VERSION,
    00582         /* invalid value found in must understand attribute */
    00583         AXIS2_ERROR_INVALID_VALUE_FOUND_IN_MUST_UNDERSTAND,
    00584         /*multiple code elements encountered in SOAP fault element */
    00585         AXIS2_ERROR_MULTIPLE_CODE_ELEMENTS_ENCOUNTERED,
    00586         /*multiple detail elements encountered in SOAP fault element */
    00587         AXIS2_ERROR_MULTIPLE_DETAIL_ELEMENTS_ENCOUNTERED,
    00588         /*multiple node elements encountered in SOAP fault element */
    00589         AXIS2_ERROR_MULTIPLE_NODE_ELEMENTS_ENCOUNTERED,
    00590         /*multiple reason elements encountered in SOAP fault element */
    00591         AXIS2_ERROR_MULTIPLE_REASON_ELEMENTS_ENCOUNTERED,
    00592         /*multiple role elements encountered in SOAP fault element */
    00593         AXIS2_ERROR_MULTIPLE_ROLE_ELEMENTS_ENCOUNTERED,
    00594         /*multiple sub code values encountered in SOAP fault element */
    00595         AXIS2_ERROR_MULTIPLE_SUB_CODE_VALUES_ENCOUNTERED,
    00596         /* multiple value elements encountered */
    00597         AXIS2_ERROR_MULTIPLE_VALUE_ENCOUNTERED_IN_CODE_ELEMENT,
    00598         /* must understand attribute should have values of true or false */
    00599         AXIS2_ERROR_MUST_UNDERSTAND_SHOULD_BE_1_0_TRUE_FALSE,
    00600
    00602         AXIS2_ERROR_OM_ELEMENT_EXPECTED,
    00603         /* processing SOAP 1.1 fault value element should have only
    00604            text as its children */
    00605         AXIS2_ERROR_ONLY_CHARACTERS_ARE_ALLOWED_HERE,
    00606
    00608         AXIS2_ERROR_ONLY_ONE_SOAP_FAULT_ALLOWED_IN_BODY,
    00609         /*SOAP 1.1 fault actor element should not have child elements */
    00610         AXIS2_ERROR_SOAP11_FAULT_ACTOR_SHOULD_NOT_HAVE_CHILD_ELEMENTS,
    00611
    00614         AXIS2_ERROR_SOAP_BUILDER_ENVELOPE_CAN_HAVE_ONLY_HEADER_AND_BODY,
    00615
    00617         AXIS2_ERROR_SOAP_BUILDER_HEADER_BODY_WRONG_ORDER,
    00618
    00620         AXIS2_ERROR_SOAP_BUILDER_MULTIPLE_BODY_ELEMENTS_ENCOUNTERED,
    00621
    00623         AXIS2_ERROR_SOAP_BUILDER_MULTIPLE_HEADERS_ENCOUNTERED,
    00624         /*SOAP fault code element should a mandatory fault value element */
    00625         AXIS2_ERROR_SOAP_FAULT_CODE_DOES_NOT_HAVE_A_VALUE,
    00626         /*SOAP fault reason element should have a text */
    00627         AXIS2_ERROR_SOAP_FAULT_REASON_ELEMENT_SHOULD_HAVE_A_TEXT,
    00628         /*SOAP fault role element should have a text value */
    00629         AXIS2_ERROR_SOAP_FAULT_ROLE_ELEMENT_SHOULD_HAVE_A_TEXT,
    00630         /* SOAP fault value should be present before sub code element in SOAP fault code */
    00631         AXIS2_ERROR_SOAP_FAULT_VALUE_SHOULD_BE_PRESENT_BEFORE_SUB_CODE,
    00632
    00634         AXIS2_ERROR_SOAP_MESSAGE_DOES_NOT_CONTAIN_AN_ENVELOPE,
    00635         /*SOAP message first element must contain a localname */
    00636         AXIS2_ERROR_SOAP_MESSAGE_FIRST_ELEMENT_MUST_CONTAIN_LOCAL_NAME,
    00637         /* this localname is not supported inside a reason element */
    00638         AXIS2_ERROR_THIS_LOCALNAME_IS_NOT_SUPPORTED_INSIDE_THE_REASON_ELEMENT,
    00639         /*this localname is not supported inside a sub code element */
    00640         AXIS2_ERROR_THIS_LOCALNAME_IS_NOT_SUPPORTED_INSIDE_THE_SUB_CODE_ELEMENT,
    00641         /*this localname is not supported inside the code element */
    00642         AXIS2_ERROR_THIS_LOCALNAME_NOT_SUPPORTED_INSIDE_THE_CODE_ELEMENT,
    00643         /*transport level identified SOAP version does not match with the SOAP version */
    00644         AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP,
    00645         /*unsupported element in SOAP fault element */
    00646         AXIS2_ERROR_UNSUPPORTED_ELEMENT_IN_SOAP_FAULT_ELEMENT,
    00647         /*wrong element order encountered */
    00648         AXIS2_ERROR_WRONG_ELEMENT_ORDER_ENCOUNTERED,
    00649         /*
    00650          * Group - services
    00651          */
    00652
    00654         AXIS2_ERROR_SVC_SKEL_INVALID_XML_FORMAT_IN_REQUEST,
    00655
    00657         AXIS2_ERROR_SVC_SKEL_INPUT_OM_NODE_NULL,
    00658
    00660         AXIS2_ERROR_SVC_SKEL_INVALID_OPERATION_PARAMETERS_IN_SOAP_REQUEST,
    00661
    00662         /*
    00663          * Group - repos
    00664          */
    00665         /* not authenticated */
    00666         AXIS2_ERROR_REPOS_NOT_AUTHENTICATED,
    00667         /* unsupported mode */
    00668         AXIS2_ERROR_REPOS_UNSUPPORTED_MODE,
    00669         /* expired */
    00670         AXIS2_ERROR_REPOS_EXPIRED,
    00671         /* not implemented */
    00672         AXIS2_ERROR_REPOS_NOT_IMPLEMENTED,
    00673         /* not found */
    00674         AXIS2_ERROR_REPOS_NOT_FOUND,
    00675         /* bad search text */
    00676         AXIS2_ERROR_REPOS_BAD_SEARCH_TEXT,
    00677
    00678         /*
    00679          *Group - Neethi
    00680          */
    00681         /*  No Namespace */
    00682         AXIS2_ERROR_NEETHI_ELEMENT_WITH_NO_NAMESPACE,
    00683         /*Policy cannot be created from element */
    00684         AXIS2_ERROR_NEETHI_POLICY_CREATION_FAILED_FROM_ELEMENT,
    00685         /*All Cannot be created from element */
    00686         AXIS2_ERROR_NEETHI_ALL_CREATION_FAILED_FROM_ELEMENT,
    00687         /*Exactly one Cannot be created element */
    00688         AXIS2_ERROR_NEETHI_EXACTLYONE_CREATION_FAILED_FROM_ELEMENT,
    00689         /*Reference Cannot be created from element */
    00690         AXIS2_ERROR_NEETHI_REFERENCE_CREATION_FAILED_FROM_ELEMENT,
    00691         /*Assertion Cannot be created from element */
    00692         AXIS2_ERROR_NEETHI_ASSERTION_CREATION_FAILED_FROM_ELEMENT,
    00693         /*All creation failed */
    00694         AXIS2_ERROR_NEETHI_ALL_CREATION_FAILED,
    00695         /*Exactly one creation failed */
    00696         AXIS2_ERROR_NEETHI_EXACTLYONE_CREATION_FAILED,
    00697         /*Policy Creation failed */
    00698         AXIS2_ERROR_NEETHI_POLICY_CREATION_FAILED,
    00699         /*Normalization failed */
    00700         AXIS2_ERROR_NEETHI_NORMALIZATION_FAILED,
    00701         /*Merging Failed. Wrong Input */
    00702         AXIS2_ERROR_NEETHI_WRONG_INPUT_FOR_MERGE,
    00703         /*Merging Failed. Cross Product failed */
    00704         AXIS2_ERROR_NEETHI_CROSS_PRODUCT_FAILED,
    00705         /*No Children Policy Components */
    00706         AXIS2_ERROR_NEETHI_NO_CHILDREN_POLICY_COMPONENTS,
    00707         /*Uri Not specified */
    00708         AXIS2_ERROR_NEETHI_URI_NOT_SPECIFIED,
    00709         /*Policy NULL for the given uri */
    00710         AXIS2_ERROR_NEETHI_NO_ENTRY_FOR_THE_GIVEN_URI,
    00711         /*Exactly one not found in Normalized policy */
    00712         AXIS2_ERROR_NEETHI_EXACTLYONE_NOT_FOUND_IN_NORMALIZED_POLICY,
    00713         /*Exactly one is Empty */
    00714         AXIS2_ERROR_NEETHI_EXACTLYONE_IS_EMPTY,
    00715         /*Exactly one not found while getting cross product */
    00716         AXIS2_ERROR_NEETHI_ALL_NOT_FOUND_WHILE_GETTING_CROSS_PRODUCT,
    00717         /*Unknown Assertion*/
    00718         AXIS2_ERROR_NEETHI_UNKNOWN_ASSERTION,
    00725         AXIS2_ERROR_LAST
    00726     };
    00727
    00728     struct axutil_error;
    00729     typedef enum axis2_status_codes axis2_status_codes_t;
    00730     typedef enum axutil_error_codes axutil_error_codes_t;
    00731
    00743     typedef struct axutil_error
    00744     {
    00750         axutil_allocator_t *allocator;
    00751
    00753         int error_number;
    00755         int status_code;
    00761         axis2_char_t *message;
    00762     }
    00763     axutil_error_t;
    00764
    00770     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
    00771     axutil_error_get_message(
    00772         const struct axutil_error *error);
    00773
    00782     /*AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
    00783     axutil_error_get_extended_message(
    00784         const struct axutil_error *error);*/
    00785
    00792     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00793     axutil_error_set_error_number(
    00794         struct axutil_error *error,
    00795         axutil_error_codes_t error_number);
    00796
    00803     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00804     axutil_error_set_status_code(
    00805         struct axutil_error *error,
    00806         axis2_status_codes_t status_code);
    00807
    00813     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00814     axutil_error_get_status_code(
    00815         struct axutil_error *error);
    00816
    00823     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00824     axutil_error_set_error_message(
    00825         struct axutil_error *error,
    00826         axis2_char_t *message);
    00827
    00834     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00835     axutil_error_init(void);
    00836
    00842     AXIS2_EXTERN void AXIS2_CALL
    00843     axutil_error_free(
    00844         struct axutil_error *error);
    00845
    00851 #define AXIS2_ERROR_FREE(error) axutil_error_free(error)
    00852
    00853 #define AXIS2_ERROR_GET_MESSAGE(error) \
    00854     axutil_error_get_message(error)
    00855
    00856 #define AXIS2_ERROR_SET_MESSAGE(error, message) \
    00857     axutil_error_set_error_message(error, message)
    00858
    00859 #define AXIS2_ERROR_SET_ERROR_NUMBER(error, error_number) \
    00860         axutil_error_set_error_number(error, error_number)
    00861
    00862 #define AXIS2_ERROR_SET_STATUS_CODE(error, status_code) \
    00863         axutil_error_set_status_code(error, status_code)
    00864
    00865 #define AXIS2_ERROR_GET_STATUS_CODE(error) axutil_error_get_status_code(error)
    00866
    00869 #ifdef __cplusplus
    00870 }
    00871 #endif
    00872
    00873 #endif                          /* AXIS2_ERROR_H */