org.gsm.oneapi.responsebean.location
Class TerminalLocation.RequestError

java.lang.Object
  extended by org.gsm.oneapi.responsebean.location.TerminalLocation.RequestError
Enclosing class:
TerminalLocation

public static class TerminalLocation.RequestError
extends java.lang.Object

in the case there is an error raised by the server the details of the error are included within this customised error response


Nested Class Summary
static class TerminalLocation.RequestError.ServiceException
          for the terminal location the class of error that can be raised is a service exception
 
Constructor Summary
TerminalLocation.RequestError()
          default constructor
TerminalLocation.RequestError(java.lang.String messageId, java.lang.String text, java.lang.String variables)
          utility constructor to create a RequestError.ServiceException object with all fields set
 
Method Summary
 TerminalLocation.RequestError.ServiceException getServiceException()
          return the instance of this serviceException
 void setServiceException(TerminalLocation.RequestError.ServiceException serviceException)
          set an instance of a serviceException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminalLocation.RequestError

public TerminalLocation.RequestError()
default constructor


TerminalLocation.RequestError

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

Parameters:
messageId -
text -
variables -
Method Detail

getServiceException

public TerminalLocation.RequestError.ServiceException getServiceException()
return the instance of this serviceException


setServiceException

public void setServiceException(TerminalLocation.RequestError.ServiceException serviceException)
set an instance of a serviceException. This is called internally to set the contents according to the JSON response.