View Javadoc

1   /*
2    * Copyright (c) 2004 UNINETT FAS
3    *
4    * This program is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU General Public License as published by the Free
6    * Software Foundation; either version 2 of the License, or (at your option)
7    * any later version.
8    *
9    * This program is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11   * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12   * more details.
13   *
14   * You should have received a copy of the GNU General Public License along with
15   * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16   * Place - Suite 330, Boston, MA 02111-1307, USA.
17   *
18   */
19  
20  package no.feide.moria.directory;
21  
22  /***
23   * Used to signal an exception related to the Directory Manager's configuration.
24   * <br>
25   * <br>
26   * Note that this exception is thrown whenever an unrecoverable internal error
27   * is encountered, as this will invariably be related to faulty configuration of
28   * the Directory Manager. Recoverable internal errors will generally
29   * <em>not</em> result in a
30   * <code>DirectoryManagerConfigurationException</code>, but in a log message
31   * as the Directory Manager attempts to continue with its existing, presumably
32   * working, configuration settings.
33   */
34  public class DirectoryManagerConfigurationException
35  extends RuntimeException {
36  
37      /***
38       * Serial version UID.
39       */
40      private static final long serialVersionUID = 2741780154996396695L;
41  
42  
43      /***
44       * Constructor. Creates a new exception with only an exception message.
45       * @param message
46       *            The exception message.
47       * @see Exception#Exception(java.lang.String)
48       */
49      public DirectoryManagerConfigurationException(final String message) {
50  
51          super(message);
52  
53      }
54  
55  
56      /***
57       * Constructor. Creates a new exception with both an exception message and a
58       * cause.
59       * @param message
60       *            The exception message.
61       * @param cause
62       *            The exception cause.
63       * @see Exception#Exception(java.lang.String, java.lang.Throwable)
64       */
65      public DirectoryManagerConfigurationException(final String message,
66                                                    final Throwable cause) {
67  
68          super(message, cause);
69  
70      }
71  
72  }