View Javadoc

1   /*
2    * Copyright 2008-2010 smartics, Kronseder & Reiner GmbH
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  
17  package de.smartics.maven.issues.cache;
18  
19  /**
20   * Signals problems persisting task data.
21   *
22   * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a>
23   * @version $Revision:591 $
24   */
25  public class PersistenceException extends Exception
26  {
27    // ********************************* Fields *********************************
28  
29    // --- constants ------------------------------------------------------------
30  
31    /**
32     * The class version identifier.
33     * <p>
34     * The value of this constant is {@value}.
35     */
36    private static final long serialVersionUID = 1L;
37  
38    // --- members --------------------------------------------------------------
39  
40    // ****************************** Initializer *******************************
41  
42    // ****************************** Constructors ******************************
43  
44    /**
45     * Constructor.
46     *
47     * @param message the detail message. The detail message is saved for later
48     *          retrieval by the {@link #getMessage()} method.
49     * @see java.lang.Exception#Exception(java.lang.String)
50     */
51    public PersistenceException(final String message)
52    {
53      super(message);
54    }
55  
56    /**
57     * Constructor.
58     *
59     * @param cause the cause (which is saved for later retrieval by the
60     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
61     *          and indicates that the cause is nonexistent or unknown.)
62     * @see java.lang.Exception#Exception(java.lang.Throwable)
63     */
64    public PersistenceException(final Throwable cause)
65    {
66      super(cause);
67    }
68  
69    /**
70     * Constructor.
71     *
72     * @param message the detail message (which is saved for later retrieval by
73     *          the {@link #getMessage()} method).
74     * @param cause the cause (which is saved for later retrieval by the
75     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
76     *          and indicates that the cause is nonexistent or unknown.)
77     * @see java.lang.Exception#Exception(java.lang.String, java.lang.Throwable)
78     */
79    public PersistenceException(final String message, final Throwable cause)
80    {
81      super(message, cause);
82    }
83  
84    // ****************************** Inner Classes *****************************
85  
86    // ********************************* Methods ********************************
87  
88    // --- init -----------------------------------------------------------------
89  
90    // --- get&set --------------------------------------------------------------
91  
92    // --- business -------------------------------------------------------------
93  
94    // --- object basics --------------------------------------------------------
95  
96  }