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