|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gsm.oneapi.responsebean.RequestError
public class RequestError
contains an error response returned from the OneAPI server
Field Summary | |
---|---|
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 Summary | |
---|---|
RequestError()
default constructor |
|
RequestError(int type,
java.lang.String messageId,
java.lang.String text,
java.lang.String variable)
utility constructor to create an RequestError instance with all fields set - this constructor will turn a single String variable into a single element array |
|
RequestError(int type,
java.lang.String messageId,
java.lang.String text,
java.lang.String[] variables)
utility constructor to create an RequestError instance with all fields set |
Method Summary | |
---|---|
int |
getExceptionType()
get the type of the exception |
PolicyException |
getPolicyException()
return the policyException instance |
ServiceException |
getServiceException()
return the serviceException instance |
void |
setExceptionType(int n)
set the type of the exception |
void |
setPolicyException(PolicyException policyException)
set the policyException instance |
void |
setServiceException(ServiceException serviceException)
set the serviceException instance |
java.lang.String |
toString()
generate a textual representation of the RequestError including all nested elements and classes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SERVICEEXCEPTION
public static final int POLICYEXCEPTION
Constructor Detail |
---|
public RequestError(int type, java.lang.String messageId, java.lang.String text, java.lang.String variable)
type
- messageId
- text
- variable
- public RequestError(int type, java.lang.String messageId, java.lang.String text, java.lang.String[] variables)
type
- messageId
- text
- variables
- public RequestError()
Method Detail |
---|
public ServiceException getServiceException()
public void setServiceException(ServiceException serviceException)
public int getExceptionType()
public PolicyException getPolicyException()
public void setPolicyException(PolicyException policyException)
public void setExceptionType(int n)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |