1   /*
2    * Copyright 2003 - 2013 The eFaps Team
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   * Revision:        $Rev$
17   * Last Changed:    $Date$
18   * Last Changed By: $Author$
19   */
20  
21  package org.efaps.util.cache;
22  
23  import org.efaps.util.EFapsException;
24  
25  /**
26   * The <code>CacheReloadException</code> class is an exception is thrown, if
27   * a cache implementing {@link AbstractCache} could not be reloaded.
28   *
29   * @author The eFaps Team
30   * @version $Id$
31   * @see AbstractCache
32   */
33  public class CacheReloadException
34      extends EFapsException
35  {
36      /**
37       * Unique identifier used to serialize this class.
38       */
39      private static final long serialVersionUID = -2388991706315797381L;
40  
41      /**
42       * Constructs a new exception with the specified detail message. The cause
43       * is not initialized, and may subsequently be initialized by a call to
44       * {@link Throwable#initCause(Throwable)}.
45       *
46       * @param _message  detailed message (which is saved for later retrieval by
47       *                  the {@link Throwable#getMessage()} method).
48       */
49      public CacheReloadException(final String _message)
50      {
51          this(_message, null);
52      }
53  
54      /**
55       * Constructs a new exception with the specified detail message and cause.
56       * <br/>
57       * Note that the detail message associated with cause is not automatically
58       * incorporated in this exception's detail message.
59       *
60       * @param _message  detailed message (which is saved for later retrieval by
61       *                  the {@link Throwable#getMessage()} method).
62       * @param _cause    cause (which is saved for later retrieval by the
63       *                  {@link Throwable#getCause()} method). (A null value is
64       *                  permitted, and indicates that the cause is nonexistent
65       *                  or unknown.)
66       */
67      public CacheReloadException(final String _message,
68                                  final Throwable _cause)
69      {
70          super(_message, _cause);
71      }
72  }