Module java.money
Package javax.money

Class MonetaryException

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

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 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.)