You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Damitha Kumarage (JIRA)" <ji...@apache.org> on 2006/06/15 11:15:29 UTC

[jira] Created: (AXIS2C-189) AXIS2_ERROR_GET_STATUS_CODE does not return a default AXIS2_SUCEES.

AXIS2_ERROR_GET_STATUS_CODE does not return a default AXIS2_SUCEES.
-------------------------------------------------------------------

         Key: AXIS2C-189
         URL: http://issues.apache.org/jira/browse/AXIS2C-189
     Project: Axis2-C
        Type: Improvement

 Environment: All
    Reporter: Damitha Kumarage
 Assigned to: Damitha Kumarage 
    Priority: Minor


AXIS2_ERROR_GET_STATUS_CODE does not return a default AXIS2_SUCEES.
So in a situtation we get a null value we have to check like this

myvalue = some_method(...);
if(!myvalue)
{
        if(AXIS2_SUCCESS != AXIS2_ERROR_GET_STATUS_CODE(env->error))
               return AXIS2_ERROR_GET_STATUS_CODE(error);
        return AXIS2_SUCCESS;
}

But instead if we return AXIS2_SUCCESS by default when call AXIS2_ERROR_GET_STATUS_CODE(error)
then we can do like following

myvalue = some_method(...);
if(!myvalue)
      return AXIS2_ERROR_GET_STATUS_CODE(env->error)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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