public class RequestError extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
POLICYEXCEPTION
internally used to indicate the type of exception being stored is a PolicyException
|
static int |
SERVICEEXCEPTION
internally used to indicate the type of exception being stored is a ServiceException
|
| Constructor and Description |
|---|
RequestError()
default constructor
|
RequestError(int type,
int httpResponseCode,
String messageId,
String clientCorrelator,
String text,
String... variables)
utility constructor to create an RequestError instance with all fields set
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClientCorrelator()
return the clientCorrelator
|
int |
getExceptionType()
get the type of the exception
|
int |
getHttpResponseCode()
get the HTTP response code
|
PolicyException |
getPolicyException()
return the policyException instance
|
ServiceException |
getServiceException()
return the serviceException instance
|
void |
setExceptionType(int n)
set the type of the exception
|
void |
setHttpResponseCode(int n)
set the HTTP response code
|
void |
setPolicyException(PolicyException policyException)
set the policyException instance
|
void |
setServiceException(ServiceException serviceException)
set the serviceException instance
|
String |
toString()
generate a textual representation of the RequestError including all nested elements and classes
|
public static final int SERVICEEXCEPTION
public static final int POLICYEXCEPTION
public RequestError(int type,
int httpResponseCode,
String messageId,
String clientCorrelator,
String text,
String... variables)
public RequestError()
public String getClientCorrelator()
public ServiceException getServiceException()
public void setServiceException(ServiceException serviceException)
public int getExceptionType()
public int getHttpResponseCode()
public PolicyException getPolicyException()
public void setPolicyException(PolicyException policyException)
public void setExceptionType(int n)
public void setHttpResponseCode(int n)
Copyright © 2014. All rights reserved.