ca.mint.mintchip.contract

Class MintChipException

All Implemented Interfaces:
Serializable

public class MintChipException extends Exception

This class represents an exception thrown by MintChip.

See Also:
Serialized Form
Constructors
Constructor and Description
MintChipException(String message)

Constructor.

MintChipException(String message, int errorCode)

Constructor.

Methods
Modifier and Type Method and Description
int getErrorCode()

Gets the error code.

String toString() 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail

MintChipException

public MintChipException(String message)

Constructor.

Parameters:
message - description of the error that caused this exception

MintChipException

public MintChipException(String message, int errorCode)

Constructor.

Parameters:
message - description of the error that caused this exception
errorCode - a numeric code associated with the response generated by MintChip
Method Detail

getErrorCode

public int getErrorCode()

Gets the error code.

Returns:
an error code associated with this MintChipException. The error code is normally corresponds to the failure response status returned by the MintChip applet.

toString

public String toString()

Overrides:
toString in class Throwable