public class ServiceException
extends java.lang.Exception
| Constructor and Description |
|---|
ServiceException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String requestUrl)
Instantiates a new service exception.
|
ServiceException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String requestUrl,
java.lang.String requestBody)
Instantiates a new service exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorCode()
Gets the error code.
|
java.lang.String |
getErrorString()
Gets the error string.
|
java.lang.String |
getRequestBody()
Gets the request body.
|
java.lang.String |
getRequestUrl()
Gets the request url.
|
java.lang.String |
toString() |
public ServiceException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String requestUrl)
message - the messagecause - the causerequestUrl - the request urlpublic ServiceException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String requestUrl,
java.lang.String requestBody)
message - the messagecause - the causerequestUrl - the request urlrequestBody - the request bodypublic java.lang.String getErrorCode()
public java.lang.String getErrorString()
public java.lang.String getRequestBody()
public java.lang.String getRequestUrl()
public java.lang.String toString()
toString in class java.lang.Throwable