001/* 002 * 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. 003 * 004 * Specification: JSR-354 Money and Currency API ("Specification") 005 * 006 * Copyright (c) 2012-2013, Credit Suisse 007 * All rights reserved. 008 */ 009package javax.money; 010 011/** 012 * Exception thrown when an error occurs during monetary operations. 013 */ 014public class MonetaryException extends RuntimeException { 015 016 /** 017 * serialVersionUID. 018 */ 019 private static final long serialVersionUID = -9039026008242959369L; 020 021 /** 022 * Creates an instance. 023 * 024 * @param message the message 025 */ 026 public MonetaryException(String s) { 027 super(s); 028 } 029 030 /** 031 * Creates an instance with the specified detail message and cause. 032 * 033 * @param message 034 * the detail message (which is saved for later retrieval by the 035 * {@link Throwable#getMessage()} method). 036 * @param cause 037 * the cause (which is saved for later retrieval by the 038 * {@link Throwable#getCause()} method). (A <tt>null</tt> value 039 * is permitted, and indicates that the cause is nonexistent or 040 * unknown.) 041 */ 042 public MonetaryException(String message, Throwable cause) { 043 super(message, cause); 044 } 045}