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

Generated on Mon Oct 1 17:05:56 2007 for Sandesha2/C by  doxygen 1.5.3