View Javadoc
1   /*
2    * Copyright 2004 Diogo Quintela (dquintela@users.sourceforge.net)
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 net.sf.whatsnew.exceptions;
17  
18  /***
19   * <p>
20   * Invalid option exception
21   * </p>
22   *
23   * @author <a href="mailto:dquintela@users.sourceforge.net">Diogo Quintela</a>
24   * @version $Id: InvalidOptionValue.java,v 1.1 2004/05/13 01:22:39 dquintela Exp $
25   */
26  public class InvalidOptionValue
27  extends AppException {
28      /***
29       * Creates a new InvalidOptionValue object.
30       */
31      public InvalidOptionValue() {
32          super();
33      }
34  
35      /***
36       * Creates a new InvalidOptionValue object.
37       *
38       * @param key the detail message.
39       */
40      public InvalidOptionValue(String key) {
41          super(key);
42      }
43  
44      /***
45       * Creates a new InvalidOptionValue object.
46       *
47       * @param value The value for the key or the message
48       * @param useBundle true, <code>value</code> will be used as message
49       *        identifier, false, <code>value</code> will be message associated
50       *        with exception
51       */
52      public InvalidOptionValue(
53          String value,
54          boolean useBundle) {
55          super(value, useBundle);
56      }
57  }
58  // EOF