Apache CXF API

org.apache.cxf.jaxrs.client
Class ClientWebApplicationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cxf.jaxrs.client.ClientWebApplicationException
All Implemented Interfaces:
Serializable

public class ClientWebApplicationException
extends RuntimeException

This exception indicates that the problem has occurred on the client side only, possibly as part of processing the successful server response or even before the request has been sent

See Also:
Serialized Form

Constructor Summary
ClientWebApplicationException()
           
ClientWebApplicationException(String message)
           
ClientWebApplicationException(String message, Throwable cause, javax.ws.rs.core.Response response)
           
ClientWebApplicationException(Throwable cause)
           
 
Method Summary
 javax.ws.rs.core.Response getResponse()
          Returns the server response if any, for example, if the problem has occurred during reading the response then this method will return JAX-RS Response object representing the actual server response
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientWebApplicationException

public ClientWebApplicationException()

ClientWebApplicationException

public ClientWebApplicationException(String message)

ClientWebApplicationException

public ClientWebApplicationException(Throwable cause)

ClientWebApplicationException

public ClientWebApplicationException(String message,
                                     Throwable cause,
                                     javax.ws.rs.core.Response response)
Method Detail

getResponse

public javax.ws.rs.core.Response getResponse()
Returns the server response if any, for example, if the problem has occurred during reading the response then this method will return JAX-RS Response object representing the actual server response

Returns:
server response, can be null

Apache CXF API

Apache CXF