java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.money.MonetaryException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CurrencyConversionException,MonetaryParseException,UnknownCurrencyException
Exception thrown when an error occurs during monetary operations.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMonetaryException(String message) Creates an instance.MonetaryException(String message, Throwable cause) Creates an instance with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID.- See Also:
-
-
Constructor Details
-
MonetaryException
Creates an instance.- Parameters:
message- the message
-
MonetaryException
Creates an instance with the specified detail message and cause.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-