View Javadoc

1   /*
2    * Copyright 2012-2013 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  package de.smartics.properties.resource.repository;
17  
18  import de.smartics.properties.api.core.app.AbstractBaseMessageBean;
19  import de.smartics.properties.resource.app.ResourcesCode;
20  import de.smartics.properties.resource.domain.ResourceException;
21  
22  /**
23   * Signals problems accessing a repository.
24   */
25  public class RepositoryException extends ResourceException
26  {
27    // ********************************* Fields *********************************
28  
29    // --- constants ------------------------------------------------------------
30  
31    /**
32     * The class version identifier.
33     */
34    private static final long serialVersionUID = 2L;
35  
36    // --- members --------------------------------------------------------------
37  
38    // ****************************** Initializer *******************************
39  
40    // ****************************** Constructors ******************************
41  
42    /**
43     * Constructor without a cause.
44     *
45     * @param code the error or exception code of the exception.
46     */
47    public RepositoryException(final ResourcesCode code)
48    {
49      super(code);
50    }
51  
52    /**
53     * Default constructor.
54     *
55     * @param cause the cause (which is saved for later retrieval by the
56     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
57     *          and indicates that the cause is nonexistent or unknown.)
58     * @param code the error or exception code of the exception.
59     */
60    public RepositoryException(final Throwable cause, final ResourcesCode code)
61    {
62      super(cause, code);
63    }
64  
65    /**
66     * Default constructor with a message bean.
67     *
68     * @param messageBean the message information for the exception.
69     */
70    public RepositoryException(final AbstractBaseMessageBean messageBean)
71    {
72      super(messageBean);
73    }
74  
75    // ****************************** Inner Classes *****************************
76  
77    // ********************************* Methods ********************************
78  
79    // --- init -----------------------------------------------------------------
80  
81    // --- get&set --------------------------------------------------------------
82  
83    // --- business -------------------------------------------------------------
84  
85    // --- object basics --------------------------------------------------------
86  
87  }