/*
* CREDIT SUISSE IS WILLING TO LICENSE THIS SPECIFICATION TO YOU ONLY UPON THE
* CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS AGREEMENT.
* PLEASE READ THE TERMS AND CONDITIONS OF THIS AGREEMENT CAREFULLY. BY
* DOWNLOADING THIS SPECIFICATION, YOU ACCEPT THE TERMS AND CONDITIONS OF THE
* AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY IT, SELECT THE "DECLINE"
* BUTTON AT THE BOTTOM OF THIS PAGE.
*
* Specification: JSR-354 Money and Currency API ("Specification")
*
* Copyright (c) 2012-2013, Credit Suisse All rights reserved.
*/
package javax.money;
/**
* Exception thrown when an error occurs during monetary operations.
*
* @author Werner Keil
* @author Anatole Tresch
*/
public class
MonetaryException extends
RuntimeException {
/**
* serialVersionUID.
*/
private static final long
serialVersionUID = -9039026008242959369L;
/**
* Creates an instance.
*
* @param message the message
*/
public
MonetaryException(
String message) {
super(
message);
}
/**
* Creates an instance with the specified detail message and cause.
*
* @param message
* the detail message (which is saved for later retrieval by the
* {@link Throwable#getMessage()} method).
* @param cause
* the cause (which is saved for later retrieval by the
* {@link Throwable#getCause()} method). (A <tt>null</tt> value
* is permitted, and indicates that the cause is nonexistent or
* unknown.)
*/
public
MonetaryException(
String message,
Throwable cause) {
super(
message,
cause);
}
}