Package com.exedio.cope.pattern
Class IllegalCurrencyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.exedio.cope.ConstraintViolationException
-
- com.exedio.cope.pattern.IllegalCurrencyException
-
- All Implemented Interfaces:
Serializable
public final class IllegalCurrencyException extends ConstraintViolationException
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Money.Currency
getAllowed()
MoneyField<?>
getFeature()
String
getMessage(boolean withFeature)
Money<?>
getValue()
-
Methods inherited from class com.exedio.cope.ConstraintViolationException
getItem, getItemID, getItemPhrase, getItemText, getMessage, getMessageWithoutFeature
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getFeature
public MoneyField<?> getFeature()
- Specified by:
getFeature
in classConstraintViolationException
-
getValue
public Money<?> getValue()
-
getAllowed
public Money.Currency getAllowed()
-
getMessage
public String getMessage(boolean withFeature)
- Specified by:
getMessage
in classConstraintViolationException
-
-