You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by ro...@apache.org on 2026/01/14 11:46:44 UTC

(axis-axis2-c-core) 03/03: Add missing AXIS2_ERROR_INVALID_MESSAGE error code

This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit 5bc386ac43f103330a2c06df9c4121650fd1cef2
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Wed Jan 14 01:41:28 2026 -1000

    Add missing AXIS2_ERROR_INVALID_MESSAGE error code
    
    The native code generator uses AXIS2_ERROR_INVALID_MESSAGE in generated
    stub code for serialization failures, but the error code was not defined.
    This caused compilation failures in 15 ADB code generator tests.
    
    Co-Authored-By: Claude Opus 4.5 <no...@anthropic.com>
---
 util/include/axutil_error.h | 3 +++
 util/src/error.c            | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/util/include/axutil_error.h b/util/include/axutil_error.h
index 42b9a7545..810d97a77 100644
--- a/util/include/axutil_error.h
+++ b/util/include/axutil_error.h
@@ -85,6 +85,9 @@ extern "C"
         /** NULL parameter was passed when a non NULL parameter was expected */
         AXIS2_ERROR_INVALID_NULL_PARAM,
 
+        /** Invalid or malformed message */
+        AXIS2_ERROR_INVALID_MESSAGE,
+
         /*
          * Group - core:addr
          */
diff --git a/util/src/error.c b/util/src/error.c
index bb35d96c6..ee2c684ce 100644
--- a/util/src/error.c
+++ b/util/src/error.c
@@ -55,6 +55,8 @@ axutil_error_init()
     axutil_error_messages[AXIS2_ERROR_NO_MEMORY] = "Out of memory";
     axutil_error_messages[AXIS2_ERROR_INVALID_NULL_PARAM]
         = "NULL parameter was passed when a non NULL parameter was expected";
+    axutil_error_messages[AXIS2_ERROR_INVALID_MESSAGE]
+        = "Invalid or malformed message";
     /* core:addr */
 
     /* core:clientapi */