View Javadoc

1   /*
2    *  Copyright 2009-2013 Stephen Colebourne
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   */
16  package org.joda.money;
17  
18  /**
19   * Exception thrown when the requested currency is illegal.
20   * <p>
21   * For example, this exception would be thrown when trying to obtain a
22   * currency using an unrecognised currency code or locale.
23   * <p>
24   * This exception makes no guarantees about immutability or thread-safety.
25   */
26  public class IllegalCurrencyException extends IllegalArgumentException {
27  
28      /** Serialization lock. */
29      private static final long serialVersionUID = 1L;
30  
31      /**
32       * Constructor.
33       * 
34       * @param message  the message, may be null
35       */
36      public IllegalCurrencyException(String message) {
37          super(message);
38      }
39  
40  }