public class RequestFailedException extends Exception
This exception is thrown, when a request to the Webservice failed. The exception holds further informations about the failed request.
Modifier and Type | Field and Description |
---|---|
String |
requestRefNumber
Unique identifier of the failed HTTP request.
|
Messages |
responseMessages
Messages , that were received in the body of the HTTP response. |
int |
statusCode
Status code of the failed HTTP request.
|
String |
statusMessage
Status message of the failed HTTP request.
|
Constructor and Description |
---|
RequestFailedException(Response response,
String message) |
RequestFailedException(Response response,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getRequestRefNumber()
Return the unique identifier of the failed HTTP request.
|
Messages |
getResponseMessages()
Return the
Messages , that were received in the body of the HTTP
response. |
int |
getStatusCode()
Return the status code of the HTTP response.
|
String |
getStatusMessage()
Return the status message of the HTTP response.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final int statusCode
public final String statusMessage
public final String requestRefNumber
public String getRequestRefNumber()
This values was passed through the L-IS24-RequestRefnum header of the HTTP response.
public Messages getResponseMessages()
Messages
, that were received in the body of the HTTP
response.public int getStatusCode()
public String getStatusMessage()
Copyright © 2016 OpenEstate. All rights reserved.