[jira] Created: (WSFPHP-407) WSFault::getMessage() should return WSFault::Reason

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] Created: (WSFPHP-407) WSFault::getMessage() should return WSFault::Reason

JIRA jira@wso2.org
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
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev
Loading...