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

Generated on Thu May 22 15:02:58 2008 for Savan/C by  doxygen 1.5.5