You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2005/09/27 06:45:29 UTC

svn commit: r291821 - /webservices/axis2/trunk/c/include/axis2c_errno.h

Author: damitha
Date: Mon Sep 26 21:45:24 2005
New Revision: 291821

URL: http://svn.apache.org/viewcvs?rev=291821&view=rev
Log:
This file will includes axis2c specific error codes and
status codes. This file internally includes apr_errno.h

Added:
    webservices/axis2/trunk/c/include/axis2c_errno.h

Added: webservices/axis2/trunk/c/include/axis2c_errno.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_errno.h?rev=291821&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_errno.h (added)
+++ webservices/axis2/trunk/c/include/axis2c_errno.h Mon Sep 26 21:45:24 2005
@@ -0,0 +1,55 @@
+#ifndef _AXIS2C_ERRNO_H_
+#define _AXIS2C_ERRNO_H_
+
+/**
+ * @file axis2c_errno.h
+ * @brief Axis2c Error Codes
+ */
+
+#include <apr_errno.h>
+
+/**
+ * AXIS2C_START_ERROR is where the AXIS2C specific error values start.
+ * In apr_errno.h APR_OS_START_USERERR is defined as start of the 
+ * error codes for applications using apr.
+ */
+#define AXIS2C_START_ERROR    APR_OS_START_USERERR
+
+#define AXIS2C_START_SPACE    50000
+
+
+#define AXIS2C_STATUS         AXIS2C_START_ERROR + AXIS2C_ERROR_SPACE
+
+/** 
+ * @defgroup AXIS2C_Error AXIS2C Error Values
+ * <PRE>
+ * <b>AXIS2C ERROR VALUES</b>
+ * AXIS2C_ERROR_OM_MEMORY_ALLOCATION      AXIS2C was unable to
+ *                                        allocate the requested memory for the OM 
+ *</PRE>
+ * <PRE>
+ * <b>AXIS2C STATUS VALUES</b>
+ * AXIS2C_SUCCESS                         Success status code
+ * AXIS2C_FAILIURE                        Failure status code
+ *
+ * </PRE>
+ # @addtogroup AXIS2C Error codes
+ * @{
+ */
+/** @see AXIS2C_ERROR_OM_MEMORY_ALLOCATION */
+#define AXIS2C_ERROR_OM_MEMORY_ALLOCATION        (AXIS2C_START_ERROR + 1)
+
+/** @} */
+
+/** 
+ * @addtogroup AXIS2C Status codes
+ * @{
+ */
+
+#define AXIS2C_SUCCESS        (AXIS2C_START_STATUS + 1)
+#define AXIS2C_FAILURE       (APR_OS_START_STATUS + 2)
+
+
+/** @} */
+
+#endif /* _AXIS2C_ERRNO_H_ */