WSFault::getMessage() should return WSFault::Reason
---------------------------------------------------
Key: WSFPHP-407
URL:
https://wso2.org/jira/browse/WSFPHP-407 Project: WSO2 WSF/PHP
Issue Type: Improvement
Components: WSFault
Affects Versions: 2.0.0
Reporter: alexey baranov
regular use of try-catch construction is
try (
)
catch (Exception $ e) (
/ / use of $ e-> getMessage()
)
with WSFault method getMessage() always returns an empty string, and accounted for in all places, which used the WSO to use the expanded structure to achieve the same result
try (
)
catch (WSFault $ e) (
/ / use of $ e-> __toString()
)
catch (Exception $ e) (
/ / repeat the previous code block, using $ e-> getMessage()
)
this is very inconvenient. could you sell in the following releases WSFault::getMessage() as
function getMessage(){
return $this->Reason;
}
thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
Wsf-c-dev mailing list
Wsf-c-dev@...
https://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev