java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.money.MonetaryException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CurrencyConversionException
,MonetaryParseException
,UnknownCurrencyException
public class MonetaryException
extends java.lang.RuntimeException
Exception thrown when an error occurs during monetary operations.
- Author:
- Werner Keil, Anatole Tresch
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MonetaryException(java.lang.String message)
Creates an instance.MonetaryException(java.lang.String message, java.lang.Throwable cause)
Creates an instance with the specified detail message and cause. -
Method Summary
-
Constructor Details
-
MonetaryException
public MonetaryException(java.lang.String message)Creates an instance.- Parameters:
message
- the message
-
MonetaryException
public MonetaryException(java.lang.String message, java.lang.Throwable cause)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). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-