org.gsm.oneapi.responsebean
Class RequestError

java.lang.Object
  extended by org.gsm.oneapi.responsebean.RequestError
All Implemented Interfaces:
java.io.Serializable

public class RequestError
extends java.lang.Object
implements java.io.Serializable

contains an error response returned from the OneAPI server

See Also:
Serialized Form

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

SERVICEEXCEPTION

public static final int SERVICEEXCEPTION
internally used to indicate the type of exception being stored is a ServiceException

See Also:
Constant Field Values

POLICYEXCEPTION

public static final int POLICYEXCEPTION
internally used to indicate the type of exception being stored is a PolicyException

See Also:
Constant Field Values
Constructor Detail

RequestError

public 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

Parameters:
type -
messageId -
text -
variable -

RequestError

public 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

Parameters:
type -
messageId -
text -
variables -

RequestError

public RequestError()
default constructor

Method Detail

getServiceException

public ServiceException getServiceException()
return the serviceException instance


setServiceException

public void setServiceException(ServiceException serviceException)
set the serviceException instance


getExceptionType

public int getExceptionType()
get the type of the exception


getPolicyException

public PolicyException getPolicyException()
return the policyException instance


setPolicyException

public void setPolicyException(PolicyException policyException)
set the policyException instance


setExceptionType

public void setExceptionType(int n)
set the type of the exception


toString

public java.lang.String toString()
generate a textual representation of the RequestError including all nested elements and classes

Overrides:
toString in class java.lang.Object