axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r529482 - in /webservices/axis2/trunk/c/util: include/axutil_error.h src/error.c
Date Tue, 17 Apr 2007 04:34:15 GMT
Author: damitha
Date: Mon Apr 16 21:34:11 2007
New Revision: 529482

URL: http://svn.apache.org/viewvc?view=rev&rev=529482
Log:
Moved axutil_error_messages array declaration from .c file to .c file.
This is in order to support error extending mechanism in axis2c modules.

Modified:
    webservices/axis2/trunk/c/util/include/axutil_error.h
    webservices/axis2/trunk/c/util/src/error.c

Modified: webservices/axis2/trunk/c/util/include/axutil_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_error.h?view=diff&rev=529482&r1=529481&r2=529482
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_error.h Mon Apr 16 21:34:11 2007
@@ -558,6 +558,23 @@
         AXIS2_ERROR_LAST
     };
         
+    /** 
+     * \brief Array to hold error messages
+     * Array to hold error messages. Note that array has capacity for 
+     * additional error messages. These are reserved for modules.
+     * In writing a module following steps must be followed in extending axis2c
+     * errors
+     * 1. Declare the start of error messages for the new module.
+          For example in sandesha2 module we have
+          #define SANDESHA2_ERROR_CODES_START (AXIS2_ERROR_LAST + 1000)
+          Above line indicates that the new modules error messages start from 
+          1000 messages after the axis2 last error message.
+       2. New module can use up to 1000 messages for its errors.
+       3. In axis2c documentation an entry about new modules error range must
+          be inserted so that another new module can know about the already
+          occupied spaces. 
+     */
+    const axis2_char_t* axutil_error_messages[AXIS2_ERROR_LAST + 10000];
     struct axutil_error;
 	typedef enum axis2_status_codes axis2_status_codes_t;
 	typedef enum axutil_error_codes axutil_error_codes_t;

Modified: webservices/axis2/trunk/c/util/src/error.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/error.c?view=diff&rev=529482&r1=529481&r2=529482
==============================================================================
--- webservices/axis2/trunk/c/util/src/error.c (original)
+++ webservices/axis2/trunk/c/util/src/error.c Mon Apr 16 21:34:11 2007
@@ -18,9 +18,6 @@
 #include <stdlib.h>
 #include "axutil_error_default.h"
 
-/* array to hold error messages */
-const axis2_char_t* axutil_error_messages[AXIS2_ERROR_LAST];
-
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axutil_error_init()
 {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message