Class BuyingMaxOpenAmountException
- 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.VoucherBuyingException
-
- org.cyclos.model.banking.vouchers.BuyingMaxOpenAmountException
-
- All Implemented Interfaces:
Serializable
public class BuyingMaxOpenAmountException extends VoucherBuyingException
Exception thrown when attempting to buy vouchers for a user, and the total open amount exceeds the maximum allowed- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuyingMaxOpenAmountException()BuyingMaxOpenAmountException(CurrencyAmountDTO currentOpenAmount, CurrencyAmountDTO maxOpenAmount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyAmountDTOgetCurrentOpenAmount()CurrencyAmountDTOgetMaxOpenAmount()voidsetCurrentOpenAmount(CurrencyAmountDTO currentOpenAmount)voidsetMaxOpenAmount(CurrencyAmountDTO maxOpenAmount)-
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
-
BuyingMaxOpenAmountException
public BuyingMaxOpenAmountException()
-
BuyingMaxOpenAmountException
public BuyingMaxOpenAmountException(CurrencyAmountDTO currentOpenAmount, CurrencyAmountDTO maxOpenAmount)
-
-
Method Detail
-
getCurrentOpenAmount
public CurrencyAmountDTO getCurrentOpenAmount()
-
getMaxOpenAmount
public CurrencyAmountDTO getMaxOpenAmount()
-
setCurrentOpenAmount
public void setCurrentOpenAmount(CurrencyAmountDTO currentOpenAmount)
-
setMaxOpenAmount
public void setMaxOpenAmount(CurrencyAmountDTO maxOpenAmount)
-
-