org.gsm.oneapi.responsebean
Class PolicyException

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

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

specific error case indicated by the OneAPI server as a Policy Exception

See Also:
Serialized Form

Constructor Summary
PolicyException()
          default constructor
PolicyException(java.lang.String messageId, java.lang.String text, java.lang.String[] variables)
          utility constructor to create a ServiceException object with all fields set
 
Method Summary
 java.lang.String getMessageId()
          return the distinctive error message identifier
 java.lang.String getText()
          return the textual representation of the error
 java.lang.String[] getVariables()
          return any instance specific error variables
 void setMessageId(java.lang.String messageId)
          set the distinctive error message identifier.
 void setText(java.lang.String text)
          set the textual representation of the error.
 void setVariables(java.lang.String[] variables)
          set any instance specific error variables.
 java.lang.String toString()
          generate a textual representation of the ServiceException instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyException

public PolicyException()
default constructor


PolicyException

public PolicyException(java.lang.String messageId,
                       java.lang.String text,
                       java.lang.String[] variables)
utility constructor to create a ServiceException object with all fields set

Parameters:
messageId -
text -
variables -
Method Detail

getMessageId

public java.lang.String getMessageId()
return the distinctive error message identifier


getText

public java.lang.String getText()
return the textual representation of the error


getVariables

public java.lang.String[] getVariables()
return any instance specific error variables


setMessageId

public void setMessageId(java.lang.String messageId)
set the distinctive error message identifier. This is called internally to set the contents according to the JSON response.


setText

public void setText(java.lang.String text)
set the textual representation of the error. This is called internally to set the contents according to the JSON response.


setVariables

public void setVariables(java.lang.String[] variables)
set any instance specific error variables. This is called internally to set the contents according to the JSON response.


toString

public java.lang.String toString()
generate a textual representation of the ServiceException instance

Overrides:
toString in class java.lang.Object