savan_error.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SAVAN_ERROR_H
00018 #define SAVAN_ERROR_H
00019
00020 #include <axutil_error.h>
00021
00022 #ifdef __cplusplus
00023 extern "C"
00024 {
00025 #endif
00026
00041 typedef enum savan_error_codes
00042 {
00043
00044 SAVAN_ERROR_NONE = SAVAN_ERROR_CODES_START,
00045
00046
00047 SAVAN_ERROR_SOAP_ACTION_NULL,
00048
00049 SAVAN_ERROR_FAILED_TO_CREATE_SUBSCRIBER,
00050
00051 SAVAN_ERROR_UNHANDLED_MSG_TYPE,
00052
00053 SAVAN_ERROR_FAILED_TO_BUILD_SOAP_ENV,
00054
00055 SAVAN_ERROR_REQUESTED_DELIVERY_MODE_NOT_SUPPORTED,
00056
00057 SAVAN_ERROR_EXPIRATION_TIME_REQUESTED_IS_INVALID,
00058
00059 SAVAN_ERROR_ONLY_EXPIRATION_DURATIONS_ARE_SUPPORTED,
00060
00061 SAVAN_ERROR_FILTERING_IS_NOT_SUPPORTED,
00062
00063 SAVAN_ERROR_REQUESTED_FILTER_DIALECT_IS_NOT_SUPPORTED,
00064
00065 SAVAN_ERROR_MESSAGE_IS_NOT_VALID_AND_CANNOT_BE_PROCESSED,
00066
00067 SAVAN_ERROR_MESSAGE_CANNOT_BE_PROCESSED_BY_EVENT_SOURCE,
00068
00069 SAVAN_ERROR_UNABLE_TO_RENEW,
00070
00071 SAVAN_ERROR_SUBSCRIBER_NOT_FOUND,
00072
00073 SAVAN_ERROR_COULD_NOT_POPULATE_TOPIC,
00074
00075 SAVAN_ERROR_PARSING_SUBSCRIBER_NODE_FAILED,
00076
00077 SAVAN_ERROR_APPLYING_FILTER_FAILED,
00078
00079 SAVAN_ERROR_STORAGE_MANAGER_CREATION_FAILED,
00080
00081 SAVAN_ERROR_SUBSCRIBER_RETRIEVE_ERROR,
00082
00083 SAVAN_ERROR_SUBSCRIBER_REMOVE_ERROR,
00084
00085 SAVAN_ERROR_SUBSCRIBER_UPDATE_ERROR,
00086
00087 SAVAN_ERROR_SUBSCRIBER_INSERT_ERROR,
00088
00089 SAVAN_ERROR_TOPIC_INSERT_ERROR,
00090
00091 SAVAN_ERROR_DATABASE_TABLE_CREATION_ERROR,
00092
00093 SAVAN_ERROR_DATABASE_CREATION_ERROR,
00094
00095 SAVAN_ERROR_FILTER_CREATION_FAILED,
00096
00097 SAVAN_ERROR_FILTER_MODULE_COULD_NOT_BE_RETRIEVED,
00098
00099 SAVAN_ERROR_LAST
00100
00101 } savan_error_codes_t;
00102
00103 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00104 savan_error_init();
00105
00106
00107 #define SAVAN_FAULT_DMRU_CODE "s12:Sender"
00108 #define SAVAN_FAULT_DMRU_SUB_CODE "wse:DeliveryModeRequestedUnavailable."
00109 #define SAVAN_FAULT_DMRU_DETAIL ""
00110
00111 #define SAVAN_FAULT_IET_CODE "s12:Sender"
00112 #define SAVAN_FAULT_IET_SUB_CODE "wse:InvalidExpirationTime"
00113 #define SAVAN_FAULT_IET_DETAIL ""
00114
00115 #define SAVAN_FAULT_UET_CODE "s12:Sender"
00116 #define SAVAN_FAULT_UET_SUB_CODE "wse:UnsupportedExpirationTime"
00117 #define SAVAN_FAULT_UET_DETAIL ""
00118
00119 #define SAVAN_FAULT_FNS_CODE "s12:Sender"
00120 #define SAVAN_FAULT_FNS_SUB_CODE "wse:FilteringNotSupported"
00121 #define SAVAN_FAULT_FNS_DETAIL "Server doesn't support filtering"
00122
00123 #define SAVAN_FAULT_FRU_CODE "s12:Sender"
00124 #define SAVAN_FAULT_FRU_SUB_CODE "wse:FilteringRequestedUnavailable"
00125 #define SAVAN_FAULT_FRU_DETAIL "Server does not support the dialect"
00126
00127 #define SAVAN_FAULT_IM_CODE "s12:Sender"
00128 #define SAVAN_FAULT_IM_SUB_CODE "wse:InvalidMessages"
00129 #define SAVAN_FAULT_IM_DETAIL "Invalid message."
00130
00131 #define SAVAN_FAULT_ESUP_CODE "s12:Receiver"
00132 #define SAVAN_FAULT_ESUP_SUB_CODE "wse:EventSourceUnableToProcess"
00133 #define SAVAN_FAULT_ESUP_DETAIL ""
00134
00135 #define SAVAN_FAULT_UTR_CODE "s12:Receiver"
00136 #define SAVAN_FAULT_UTR_SUB_CODE "wse:UnableToRenew"
00137 #define SAVAN_FAULT_UTR_DETAIL1 "Could not find the subscriber"
00138 #define SAVAN_FAULT_UTR_DETAIL2 "Subscription can not be renewed"
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00153 #ifdef __cplusplus
00154 }
00155 #endif
00156
00157 #endif