All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.pdx.cs.joy.di.CreditCardTransactionException Maven / Gradle / Ivy

The newest version!
package edu.pdx.cs.joy.di;

/**
 * Throw when there was an error when transacting with a {@link CreditCardService}
 */
public class CreditCardTransactionException extends RuntimeException
{
    private CreditTransactionCode code;

    public CreditCardTransactionException( CreditTransactionCode code )
    {
        super(code.name());
        this.code = code;
    }

    /**
     * Returns the error code of the transaction 
     * @return
     */
    public CreditTransactionCode getCode()
    {
        return code;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy