View Javadoc

1   //  jGABL2 - The Java Graph Algorithm Base Library
2   //  Copyright (C) 2000-2006  Alexander Schwartz
3   //
4   //  This library is free software; you can redistribute it and/or
5   //  modify it under the terms of the GNU Lesser General Public
6   //  License as published by the Free Software Foundation; either
7   //  version 2.1 of the License, or (at your option) any later version.
8   //
9   //  This library is distributed in the hope that it will be useful,
10  //  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  //  Lesser General Public License for more details.
13  
14  package net.sf.jgabl2.adapt;
15  
16  
17  /**
18   * Is thrown if a requested adapter is not availabe.
19   *
20   * @author Alexander Schwartz
21   * @version $Revision: 225 $
22   * @since 0.5.0
23   */
24  public final class UnavailableAdapterException
25          extends Exception {
26      /**
27       * a generated serialVersionUID.
28       */
29      private static final long serialVersionUID = -3137884121855848647L;
30  
31      /** Constructs an exception without a specified message. */
32      public UnavailableAdapterException() {
33          super();
34      }
35  
36      /**
37       * Constructs an exception with a specified message and cause.
38       *
39       * @param msg the message string
40       * @param cause the causing exception
41       */
42      public UnavailableAdapterException(
43          final String msg,
44          final Throwable cause) {
45          super(msg, cause);
46      }
47  
48      /**
49       * Constructs an exception with a specified message.
50       * @param msg the message string
51       */
52      public UnavailableAdapterException(final String msg) {
53          super(msg);
54      }
55  
56  }