com.mockrunner.example.ejb.PaySessionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockrunner-ejb Show documentation
Show all versions of mockrunner-ejb Show documentation
Mock classes for enterprise java beans
package com.mockrunner.example.ejb;
/**
* Exception class for
* {@link PaySessionBean}.
*/
public class PaySessionException extends Exception
{
public final static int UNKNOWN = 0;
public final static int UNKNOWN_CUSTOMER = 1;
public final static int UNKNOWN_BILL = 2;
public final static int WRONG_BILL_FOR_CUSTOMER = 3;
public final static int WRONG_AMOUNT_FOR_BILL = 4;
private int code = UNKNOWN;
public PaySessionException(int code)
{
this.code = code;
}
public int getCode()
{
return code;
}
}