public class SymwsClientException extends Exception
Constructor and Description |
---|
SymwsClientException()
Constructs a new instance with no information.
|
SymwsClientException(String message)
Constructs a new instance with only a message string to provide information
|
SymwsClientException(URI uri,
int responseStatus,
String responseBody)
Constructs a new instance with basic information about the HTTP request and response
|
SymwsClientException(URI uri,
int responseStatus,
String responseBody,
String message)
Constructs a new instance with basic information about the HTTP request and response
|
SymwsClientException(URI uri,
int responseStatus,
String responseBody,
SymwsFault fault)
Constructs a new instance with information about the HTTP request and response, along with a SymwsFault
|
SymwsClientException(URI uri,
javax.ws.rs.core.Response response)
Constructs a new instance with basic information about the HTTP request and response
|
SymwsClientException(URI uri,
javax.ws.rs.core.Response response,
String message)
Constructs a new instance with basic information about the HTTP request and response
|
Modifier and Type | Method and Description |
---|---|
SymwsFault |
getFault() |
String |
getResponseBody() |
int |
getResponseStatus() |
URI |
getUri() |
boolean |
hasFault()
Indicates whether this instance has an attached SymwsFault
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SymwsClientException()
public SymwsClientException(String message)
message
- The message to attach to this exceptionpublic SymwsClientException(URI uri, javax.ws.rs.core.Response response)
uri
- The URI of the service endpoint that was calledresponse
- The Response object returned by the service. This Response entity will be buffered during exception creationpublic SymwsClientException(URI uri, javax.ws.rs.core.Response response, String message)
uri
- The URI of the service endpoint that was calledresponse
- The Response object returned by the service. This Response entity will be buffered during exception creationmessage
- The message to attach to this exceptionpublic SymwsClientException(URI uri, int responseStatus, String responseBody)
uri
- The URI of the service endpoint that was calledresponseStatus
- The HTTP status code returned in the Response objectresponseBody
- The reponse body/entity returned in the Response objectpublic SymwsClientException(URI uri, int responseStatus, String responseBody, String message)
uri
- The URI of the service endpoint that was calledresponseStatus
- The HTTP status code returned in the Response objectresponseBody
- The reponse body/entity returned in the Response objectmessage
- The message to attach to this exceptionpublic SymwsClientException(URI uri, int responseStatus, String responseBody, SymwsFault fault)
uri
- The URI of the service endpoint that was calledresponseStatus
- The HTTP status code returned in the Response objectresponseBody
- The reponse body/entity returned in the Response objectfault
- The SymwsFault returned with the Response body/entitypublic boolean hasFault()
public URI getUri()
public int getResponseStatus()
public String getResponseBody()
public SymwsFault getFault()
Copyright © 2015. All rights reserved.