savan_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 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 
00036     #define SAVAN_ERROR_CODES_START (AXIS2_ERROR_LAST + 2000)
00037 
00042     typedef enum savan_error_codes
00043     { 
00044         /* No error */
00045         SAVAN_ERROR_NONE = SAVAN_ERROR_CODES_START,
00046     
00047         /* The soap action of an eventing message was missing */    
00048         SAVAN_ERROR_SOAP_ACTION_NULL,
00049         /* Failed to create an instance of subscription processor */
00050         SAVAN_ERROR_FAILED_TO_CREATE_SUB_PROCESSOR,
00051         /* Failed to create an instance of subscriber */
00052         SAVAN_ERROR_FAILED_TO_CREATE_SUBSCRIBER,
00053         /* Cannot determinet messsage type */    
00054         SAVAN_ERROR_UNKNOWN_MSG_TYPE,
00055         /* Unhandled message type */
00056         SAVAN_ERROR_UNHANDLED_MSG_TYPE,
00057         /* Service instance could not be found */
00058         SAVAN_ERROR_SERVICE_NOT_FOUND,
00059         /* Subscriber store could not be found */
00060         SAVAN_ERROR_STORE_NOT_FOUND,
00061         /* Failed to build a default soap envelope */
00062         SAVAN_ERROR_FAILED_TO_BUILD_SOAP_ENV,
00063         
00064         SAVAN_ERROR_LAST
00065     
00066     } savan_error_codes_t;
00067 
00068         typedef enum savan_fault_types
00069         {
00070         SAVAN_FAULT_DMRU = 0,
00071         SAVAN_FAULT_IET,
00072         SAVAN_FAULT_UET,
00073         SAVAN_FAULT_FNS,
00074         SAVAN_FAULT_FRU,
00075         SAVAN_FAULT_ESUP,
00076         SAVAN_FAULT_UTR,
00077         SAVAN_FAULT_IM
00078         }savan_fault_types_t;
00079 
00080         #define SAVAN_FAULT_DMRU_CODE "s12:Sender"
00081         #define SAVAN_FAULT_DMRU_SUB_CODE "wse:DeliveryModeRequestedUnavailable."
00082         #define SAVAN_FAULT_DMRU_REASON "The requested delivery mode is not supported."
00083         #define SAVAN_FAULT_DMRU_DETAIL ""
00084 
00085         #define SAVAN_FAULT_IET_CODE "s12:Sender"
00086         #define SAVAN_FAULT_IET_SUB_CODE "wse:InvalidExpirationTime"
00087         #define SAVAN_FAULT_IET_REASON "The expiration time requested is invalid."
00088         #define SAVAN_FAULT_IET_DETAIL ""
00089 
00090         #define SAVAN_FAULT_UET_CODE "s12:Sender"
00091         #define SAVAN_FAULT_UET_SUB_CODE "wse:UnsupportedExpirationTime"
00092         #define SAVAN_FAULT_UET_REASON "Only expiration durations are supported."
00093         #define SAVAN_FAULT_UET_DETAIL ""
00094 
00095         #define SAVAN_FAULT_FNS_CODE "s12:Sender"
00096         #define SAVAN_FAULT_FNS_SUB_CODE "wse:FilteringNotSupported"
00097         #define SAVAN_FAULT_FNS_REASON "Filtering is not supported."
00098         #define SAVAN_FAULT_FNS_DETAIL ""
00099 
00100         #define SAVAN_FAULT_FRU_CODE "s12:Sender"
00101         #define SAVAN_FAULT_FRU_SUB_CODE "wse:FilteringRequestedUnavailable"
00102         #define SAVAN_FAULT_FRU_REASON "Requested filter dialect is not supported."
00103         #define SAVAN_FAULT_FRU_DETAIL ""
00104 
00105         #define SAVAN_FAULT_IM_CODE "s12:Sender"
00106         #define SAVAN_FAULT_IM_SUB_CODE "wse:InvalidMessages"
00107         #define SAVAN_FAULT_IM_REASON "The messsage is not valid and cannot be processed."
00108         #define SAVAN_FAULT_IM_DETAIL "Invalid message."
00109 
00110         #define SAVAN_FAULT_ESUP_CODE "s12:Receiver"
00111         #define SAVAN_FAULT_ESUP_SUB_CODE "wse:EventSourceUnableToProcess"
00112         #define SAVAN_FAULT_ESUP_REASON ""
00113         #define SAVAN_FAULT_ESUP_DETAIL ""
00114         
00115         #define SAVAN_FAULT_UTR_CODE "s12:Receiver"
00116         #define SAVAN_FAULT_UTR_SUB_CODE "wse:UnableToRenew"
00117         #define SAVAN_FAULT_UTR_REASON ""
00118         #define SAVAN_FAULT_UTR_DETAIL ""
00119         
00121 #ifdef __cplusplus
00122 }
00123 #endif
00124  
00125 #endif /*SAVAN_ERROR_H*/

Generated on Sun Oct 7 14:37:10 2007 for Savan/C by  doxygen 1.5.1