Class InsufficientVoucherBalanceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- org.cyclos.model.BusinessException
-
- org.cyclos.model.banking.vouchers.VoucherException
-
- org.cyclos.model.banking.vouchers.VoucherRedeemingException
-
- org.cyclos.model.banking.vouchers.InsufficientVoucherBalanceException
-
- All Implemented Interfaces:
Serializable
public class InsufficientVoucherBalanceException extends VoucherRedeemingException
Exception thrown when attempting to redeem a voucher with an amount greater that its balance. The balance is returned only for vouchers with a fixed amount, not those which allow multiple top-ups.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InsufficientVoucherBalanceException()InsufficientVoucherBalanceException(CurrencyAmountDTO balance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyAmountDTOgetBalance()voidsetBalance(CurrencyAmountDTO balance)-
Methods inherited from class org.cyclos.model.CyclosException
getAttribute, getMessage, setAttribute, shouldGenerateLog
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InsufficientVoucherBalanceException
public InsufficientVoucherBalanceException()
-
InsufficientVoucherBalanceException
public InsufficientVoucherBalanceException(CurrencyAmountDTO balance)
-
-
Method Detail
-
getBalance
public CurrencyAmountDTO getBalance()
-
setBalance
public void setBalance(CurrencyAmountDTO balance)
-
-