tangocard.sdk.service
Class TangoCardServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by tangocard.sdk.service.TangoCardServiceException
All Implemented Interfaces:
java.io.Serializable

public class TangoCardServiceException
extends java.lang.Exception

The Class TangoCardServiceException.

See Also:
Serialized Form

Constructor Summary
TangoCardServiceException(ServiceResponseEnum responseType, FailureResponse responseJson, java.lang.String message)
          Instantiates a new service exception.
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.Object getResponse()
          Gets the response.
 java.lang.String getResponseType()
          Gets the response type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TangoCardServiceException

public TangoCardServiceException(ServiceResponseEnum responseType,
                                 FailureResponse responseJson,
                                 java.lang.String message)
Instantiates a new service exception.

Parameters:
responseType - the response type
responseJson - the response JSON
message - the message
Method Detail

getResponseType

public java.lang.String getResponseType()
Gets the response type.

Returns:
the response type

getResponse

public java.lang.Object getResponse()
Gets the response.

Returns:
the response

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable