# sandesha2_error.h

    00001 /*
    00002  * Copyright 2004,2005 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License")
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 #ifndef SANDESHA2_ERROR_H
    00018 #define SANDESHA2_ERROR_H
    00019
    00020 #include <axutil_error.h>
    00021
    00022 #ifdef __cplusplus
    00023 extern "C"
    00024 {
    00025 #endif
    00026
    00037     typedef enum sandesha2_error_codes sandesha2_error_codes_t;
    00038     enum sandesha2_error_codes
    00039     {
    00040         /* No error */
    00041         SANDESHA2_ERROR_NONE = SANDESHA2_ERROR_CODES_START,
    00042         /* A namespace that is not supported by Sandesha2 */
    00043         SANDESHA2_ERROR_UNSUPPORTED_NS,
    00044         /* Object cannot generated since the om_element corresponding to
    00045          * that is NULL */
    00046         SANDESHA2_ERROR_NULL_OM_ELEMENT,
    00047         /* The om element has no child elements or attributes */
    00048         SANDESHA2_ERROR_EMPTY_OM_ELEMENT,
    00049         /* om_element cannot be generated since the element corresponding
    00050          * to that is NULL*/
    00051         SANDESHA2_ERROR_TO_OM_NULL_ELEMENT,
    00052         /* Required OM attribute is NULL */
    00053         SANDESHA2_ERROR_NULL_OM_ATTRIBUTE,
    00054         /* An invalid number found during object to om conversion*/
    00055         SANDESHA2_ERROR_TO_OM_INVALID_NUMBER,
    00056         /* Ack Final now allowed in the spec */
    00057         SANDESHA2_ERROR_ACK_FINAL_NOT_ALLOWED,
    00058         /* 'To' address is not set */
    00059         SANDESHA2_ERROR_TO_ADDRESS_NOT_SET,
    00060         /* Service Context is NULL */
    00061         SANDESHA2_ERROR_SVC_CTX_NULL,
    00062         /* Service is NULL */
    00063         SANDESHA2_ERROR_SVC_NULL,
    00064         /* Result is not unique */
    00065         SANDESHA2_ERROR_NON_UNIQUE_RESULT,
    00066         /* Key is NULL. Cannot insert */
    00067         SANDESHA2_ERROR_KEY_IS_NULL,
    00068         /* Ack None now allowed in the spec */
    00069         SANDESHA2_ERROR_ACK_NONE_NOT_ALLOWED,
    00070         /* unknown storage mgr */
    00071         SANDESHA2_ERROR_UNKNOWN_STORAGE_MGR,
    00072         /* Sandesha configuration is not set in axis2 conf*/
    00073         SANDESHA2_ERROR_CONFIGURATION_NOT_SET,
    00074         /* NULL msg context */
    00075         SANDESHA2_ERROR_NULL_MSG_CTX,
    00076         /* Error occured while sending fault */
    00077         SANDESHA2_ERROR_SENDING_FAULT,
    00078         /* Invalid message number specified */
    00079         SANDESHA2_ERROR_INVALID_MSG_NUM,
    00080         /* Specified seq does not exist */
    00081         SANDESHA2_ERROR_SEQ_NOT_EXIST,
    00082         /* RM Spec version is invalid */
    00083         SANDESHA2_ERROR_INVALID_SPEC_VERSION,
    00084         /* Error occured while sending ack */
    00085         SANDESHA2_ERROR_SENDING_ACK,
    00086         /* NULL to epr is specified */
    00087         SANDESHA2_ERROR_NULL_TO,
    00088         /* Required msg part missing */
    00089         SANDESHA2_ERROR_REQD_MSG_PART_MISSING,
    00090         /* NULL sequnce given for processing */
    00091         SANDESHA2_ERROR_NULL_SEQ,
    00092         /* Storage Map not present */
    00093         SANDESHA2_ERROR_STORAGE_MAP_NOT_PRESENT,
    00094         /* Entry is not present for updating */
    00095         SANDESHA2_ERROR_ENTRY_IS_NOT_PRESENT_FOR_UPDATING,
    00096         /* Invalid namespace uri */
    00097         SANDESHA2_ERROR_INVALID_NS_URI,
    00098         /* An incoming seq report is not present for the given seqID */
    00099         SANDESHA2_ERROR_INCOMING_SEQ_REPORT_NOT_PRESENT_FOR_GIVEN_SEQ_ID,
    00100         /* To EPR is not set */
    00101         SANDESHA2_ERROR_TO_EPR_NOT_SET,
    00102         /* Options object is not set */
    00103         SANDESHA2_ERROR_OPTIONS_OBJECT_NOT_SET,
    00104         /* Unknown specification error message */
    00105         SANDESHA2_ERROR_UNKNOWN_SPEC_ERROR_MESSAGE,
    00106         /* Could not send the terminate message */
    00107         SANDESHA2_ERROR_COULD_NOT_SEND_TERMINATE_MESSAGE,
    00108         /* This rm spec version does not define a sequence close action */
    00109         SANDESHA2_ERROR_RM_SPEC_VERSION_DOES_NOT_DEFINE_A_SEQ_CLOSE_ACTION,
    00110         /* Could not send the close sequence message */
    00111         SANDESHA2_ERROR_COULD_NOT_SEND_THE_CLOSE_SEQ_MESSAGE,
    00112         /* Close Sequence feature is only available for WSRM 1.1 */
    00113         SANDESHA2_ERROR_CLOSE_SEQ_FEATURE_ONLY_AVAILABLE_FOR_WSRM1_1,
    00114         /* Cannnot find a seq report for the given data */
    00115         SANDESHA2_ERROR_CANNOT_FIND_SEQ_REPORT_FOR_GIVEN_DATA,
    00116         /* Cannnot find a seq report for the given sequence id */
    00117         SANDESHA2_ERROR_CANNOT_FIND_SEQ_REPORT_FOR_GIVEN_SEQ_ID,
    00118         /* Sequence is not in a active state. Either create seq response has not
    00119          * being received or seq has been terminated, cannot get seqID
    00120          */
    00121         SANDESHA2_ERROR_SEQ_NOT_IN_ACTIVE_STATE,
    00122         /* Sequence id bean is not set */
    00123         SANDESHA2_ERROR_SEQ_ID_BEAN_NOT_SET,
    00124         /* Empty AckRequest messages can only be sent with the v1_1 spec */
    00125         SANDESHA2_ERROR_EMPTY_ACK_REQUEST_MESSAGE,
    00126         /* Cannot generate the sequence report for the given internalSequenceID */
    00127         SANDESHA2_ERROR_CANNOT_GENERATE_SEQ_REPORT_FOR_GIVEN_INTERNAL_SEQ_ID,
    00128         /* Canot send the ackRequest message since it is not active */
    00129         SANDESHA2_ERROR_CANNOT_SEND_ACK_REQUEST_MESSAGE_SINCE_IS_NOT_ACTIVE,
    00130         /* This spec version does not define a ackRequest action */
    00131         SANDESHA2_ERROR_SPEC_VERSION_DOES_NOT_DEFINE_A_ACK_REQUEST_ACTION,
    00132         /* This spec version does not define a ackRequest soap action */
    00133         SANDESHA2_ERROR_SPEC_VERSION_DOES_NOT_DEFINE_A_ACK_REQUEST_SOAP_ACTION,
    00134         /* Invalid endpoint reference */
    00135         SANDESHA2_ERROR_INVALID_EPR,
    00136         /* Cannot find the sequence id */
    00137         SANDESHA2_ERROR_CANNOT_FIND_SEQ_ID,
    00138         /* This RM version does not allow sequence closing */
    00139         SANDESHA2_ERROR_RM_VERSION_DOES_NOT_ALLOW_SEQ_CLOSING,
    00140         /* "Not a valid terminated sequence. Internal sequence Bean is not
    00141          * available for the given sequence
    00142          */
    00143         NOT_A_VALID_TERMINATED_SEQ,
    00144         /* "Not a valid timedout sequence. Internal sequence Bean is not
    00145          * available for the given sequence
    00146          */
    00147         NOT_A_VALID_TIMEDOUT_SEQ,
    00148         /* Completed messages bean is null, for the sequence */
    00149         SANDESHA2_ERROR_COMPLETED_MSGS_BEAN_IS_NULL,
    00150         /* Sequence id is not recoreded */
    00151         SANDESHA2_ERROR_UNRECORDED_SEQ_ID,
    00152         /* relates_to not found or invalid*/
    00153         SANDESHA2_ERROR_INVALID_RELATES_TO,
    00154         /* To is NULL */
    00155         SANDESHA2_ERROR_TO_IS_NULL,
    00156         /* Create Sequence Part is NULL */
    00157         SANDESHA2_ERROR_CREATE_SEQ_PART_IS_NULL,
    00158         /* AcksTo is NULL */
    00159         SANDESHA2_ERROR_ACKS_TO_IS_NULL,
    00160         /* Create sequence message does not have the WSA:Action value */
    00161         SANDESHA2_ERROR_CREATE_SEQ_MSG_DOES_NOT_HAVE_WSA_ACTION_VALUE,
    00162         /* Create sequence message does not has a valid RM namespace value.
    00163          * Can't decide the RM version
    00164          */
    00165         SANDESHA2_ERROR_CREATE_SEQ_MSG_DOES_NOT_HAVE_VALID_RM_NS_VALUE,
    00166
    00167         /* Application message is NULL */
    00168         SANDESHA2_ERROR_APPLICATION_MSG_NULL,
    00169         /* Configuration Context is NULL */
    00170         SANDESHA2_ERROR_CONF_CTX_NULL,
    00171         /* Cannot find the rmVersion of the given message */
    00172         SANDESHA2_ERROR_CANNOT_FIND_RM_VERSION_OF_GIVEN_MSG,
    00173         /* Given message has rmNamespace value, which is different from the
    00174          * reqistered namespace for the sequence
    00175          */
    00176         SANDESHA2_ERROR_RM_NS_VALUE_IS_DIFFERENT_FROM_REGISTERED_NS_FOR_SEQ,
    00177         /* Cannot initialize the message */
    00178         SANDESHA2_ERROR_CANNOT_INIT_MSG,
    00179         /* Error in processing the message */
    00180         SANDESHA2_ERROR_CANNOT_PROCESS_MSG,
    00181         /* String array is invalid */
    00182         SANDESHA2_ERROR_INVALID_STRING_ARRAY,
    00188         /* MessagePending header must have an attribute named 'pending'" */
    00189         SANDESHA2_ERROR_PENDING_HEADER_MUST_HAVE_ATTRIBUTE_PENDING,
    00190         /* Attribute 'pending' must have value 'true' or 'false' */
    00191         SANDESHA2_ERROR_ATTRIBUTE_PENDING_MUST_HAVE_VALUE_TRUE_OR_FALSE,
    00192         /* MakeConnection element should have at lease one of Address and Identifier subelements */
    00193         SANDESHA2_ERROR_MAKE_CONNECTION_ELEMENT_SHOULD_HAVE_AT_LEAST_ADDRESS_OR_IDENTIFIER,
    00194         /* Invalid MakeConnection object. Both Identifier and Address are null */
    00195         SANDESHA2_ERROR_INVALID_MAKE_CONNECTION_BOTH_IDENTIFER_AND_ADDRESS_NULL,
    00196         /* MakeConnection is not supported in this RM version */
    00197         SANDESHA2_ERROR_MAKE_CONNECTION_IS_NOT_SUPPORTED_IN_THIS_RM_VERSION,
    00198         /* Invalid MakeConnection message. Either Address or Identifier must be present */
    00199         SANDESHA2_ERROR_INVALID_MAKE_CONNECTION_MSG,
    00200         /* Database cannot be opened */
    00201         SANDESHA2_ERROR_CANNOT_OPEN_DATABASE,
    00202         /* There is an sql error. Please refer logs */
    00203         SANDESHA2_ERROR_SQL_ERROR,
    00204         /* Cannot build message context since service is not present */
    00205         SANDESHA2_ERROR_CANNOT_BUILD_MSG_CTX_WHEN_SVC_NOT_PRESENT,
    00206         /* Cannot find a operation for generated message */
    00207         SANDESHA2_ERROR_CANNOT_FIND_OP_FOR_GENERATED_MSG,
    00208         /* Invalid persistence property string */
    00209         SANDESHA2_ERROR_INVALID_PERSISTENCE_PROPERTY_STRING,
    00210         SANDESHA2_ERROR_LAST
    00211     };
    00212
    00213 axis2_status_t AXIS2_CALL
    00214 sandesha2_error_init();
    00215
    00217 #ifdef __cplusplus
    00218 }
    00219 #endif
    00220
    00221 #endif /*SANDESHA2_ERROR_H*/