1 /* 2 * Copyright 2007 Ralf Joachim 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 * $Id: Configuration.java 6907 2007-03-28 21:24:52Z rjoachim $ 17 */ 18 package org.castor.core.util; 19 20 import org.castor.core.exceptions.CastorRuntimeException; 21 22 /** 23 * PropertiesException is an unchecked exception thrown when properties can not be loaded 24 * or if configuration property can't be converted to the requested type. 25 * 26 * @version $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $ 27 * @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a> 28 * @since 1.1.3 29 */ 30 public final class PropertiesException extends CastorRuntimeException { 31 /** SerialVersionUID */ 32 private static final long serialVersionUID = 4446761026170253291L; 33 34 /** 35 * Constructs a new PropertiesException without a message. The cause is not initialized 36 * but may subsequently be initialized by a call to initCause(Throwable). 37 */ 38 public PropertiesException() { 39 super(); 40 } 41 42 /** 43 * Constructs a new PropertiesException with the specified detail message. The cause is 44 * not initialized but may subsequently be initialized by a call to initCause(Throwable). 45 * 46 * @param message The detail message. 47 */ 48 public PropertiesException(final String message) { 49 super(message); 50 } 51 52 /** 53 * Constructs a new PropertiesException with the specified cause and the detail message 54 * of the cause. This constructor is useful for exceptions that are wrappers for others. 55 * 56 * @param cause The cause. 57 */ 58 public PropertiesException(final Throwable cause) { 59 super(cause); 60 } 61 62 /** 63 * Constructs a new PropertiesException with the specified detail message and cause. 64 * 65 * @param message The detail message. 66 * @param cause The cause. 67 */ 68 public PropertiesException(final String message, final Throwable cause) { 69 super(message, cause); 70 } 71 }