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/07/28 13:06:14 UTC
[jira] Deleted: (AXIS2C-189) AXIS2_ERROR_GET_STATUS_CODE does not
return a default AXIS2_SUCEES.
[ http://issues.apache.org/jira/browse/AXIS2C-189?page=all ]
Damitha Kumarage deleted AXIS2C-189:
------------------------------------
> 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
> Issue 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