[
https://issues.apache.org/jira/browse/CXF-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968490#action_12968490
]
Dobes Vandermeer commented on CXF-3150:
---------------------------------------
Looks good, thanks!
That'll save some time when writing unit tests.
> WebApplicationException and Response do not implement a useful
> toString()/getMessage() method
> ---------------------------------------------------------------------------------------------
>
> Key: CXF-3150
> URL: https://issues.apache.org/jira/browse/CXF-3150
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.3.0
> Reporter: Dobes Vandermeer
> Assignee: Sergey Beryozkin
> Fix For: 2.3.2, 2.4
>
>
> When using the client API, the WebApplicationExceptions are very opaque, it
> just says "WebApplicationException".
> It would be nice if the printStackTrace() on these would, without additional
> work, print out at least the status code and possibly the response body if it
> meets some criteria (any way I can send back a useful error message from the
> server would be great). The WebApplicationExceptions thrown by the client
> itself also seem to be lacking much useful information.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.