Module java.money
Package javax.money

Class MonetaryException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CurrencyConversionException, MonetaryParseException, UnknownCurrencyException

public class MonetaryException extends RuntimeException
Exception thrown when an error occurs during monetary operations.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID.
      See Also:
  • Constructor Details

    • MonetaryException

      public MonetaryException(String message)
      Creates an instance.
      Parameters:
      message - the message
    • MonetaryException

      public MonetaryException(String message, Throwable cause)
      Creates an instance with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)