tangocard.sdk.response.failure
Class SystemErrorResponse

java.lang.Object
  extended by tangocard.sdk.response.failure.FailureResponse
      extended by tangocard.sdk.response.failure.SystemErrorResponse
All Implemented Interfaces:
BaseResponse

public class SystemErrorResponse
extends FailureResponse

The Class SystemErrorResponse.


Constructor Summary
SystemErrorResponse(org.json.JSONObject responseJson)
          Instantiates a new system error response.
 
Method Summary
 java.lang.String getErrorCode()
          Gets the error code.
 java.lang.String getMessage()
          Gets the message.
 boolean parseResponseJSON(org.json.JSONObject responseJson)
          Parses the response JSON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemErrorResponse

public SystemErrorResponse(org.json.JSONObject responseJson)
                    throws TangoCardSdkException
Instantiates a new system error response.

Parameters:
responseJson - the response JSON
Throws:
TangoCardSdkException
Method Detail

getErrorCode

public java.lang.String getErrorCode()
Gets the error code.

Returns:
the error code

parseResponseJSON

public boolean parseResponseJSON(org.json.JSONObject responseJson)
                          throws TangoCardSdkException
Description copied from interface: BaseResponse
Parses the response JSON.

Parameters:
responseJson - the response JSON
Returns:
true, if successful
Throws:
TangoCardSdkException

getMessage

public java.lang.String getMessage()
Description copied from class: FailureResponse
Gets the message.

Specified by:
getMessage in class FailureResponse
Returns:
the message