Top Description Fields Constructors
javax.money

public Class MonetaryException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
javax.money.UnknownCurrencyException, javax.money.convert.CurrencyConversionException, javax.money.format.MonetaryParseException

Exception thrown when an error occurs during monetary operations.
Authors
Werner Keil, Anatole Tresch

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
MonetaryException(String
the message
message
)

Creates an instance.

public
MonetaryException(String
the detail message (which is saved for later retrieval by the Throwable#getMessage() method).
message
,
Throwable
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.)
cause
)

Creates an instance with the specified detail message and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

serialVersionUID.

Constructor Detail

MonetaryExceptionback to summary
public MonetaryException(String message)

Creates an instance.

Parameters
message:String

the message

MonetaryExceptionback to summary
public MonetaryException(String message, Throwable cause)

Creates an instance with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the Throwable#getMessage() method).

cause:Throwable

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.)