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.spi.config.proxy; 17 18 /** 19 * Signals that the provided class is not a valid properties interface. 20 */ 21 public class NotAPropertySetAnnotatedInterfaceException extends 22 PropertiesException 23 { 24 // ********************************* Fields ********************************* 25 26 // --- constants ------------------------------------------------------------ 27 28 /** 29 * The class version identifier. 30 * <p> 31 * The value of this constant is {@value}. 32 */ 33 private static final long serialVersionUID = 1L; 34 35 // --- members -------------------------------------------------------------- 36 37 // ****************************** Initializer ******************************* 38 39 // ****************************** Constructors ****************************** 40 41 /** 42 * Convenience constructor without a root cause. 43 * 44 * @param message the detail message (which is saved for later retrieval by 45 * the {@link #getMessage()} method). 46 */ 47 public NotAPropertySetAnnotatedInterfaceException(final String message) 48 { 49 this(message, null); 50 } 51 52 /** 53 * Convenience constructor without a message. 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 */ 59 public NotAPropertySetAnnotatedInterfaceException(final Throwable cause) 60 { 61 this(null, cause); 62 } 63 64 /** 65 * Constructor. 66 * 67 * @param message the detail message (which is saved for later retrieval by 68 * the {@link #getMessage()} method). 69 * @param cause the cause (which is saved for later retrieval by the 70 * {@link #getCause()} method). (A <tt>null</tt> value is permitted, 71 * and indicates that the cause is nonexistent or unknown.) 72 */ 73 public NotAPropertySetAnnotatedInterfaceException(final String message, 74 final Throwable cause) 75 { 76 super(message, cause); 77 } 78 79 // ****************************** Inner Classes ***************************** 80 81 // ********************************* Methods ******************************** 82 83 // --- init ----------------------------------------------------------------- 84 85 // --- get&set -------------------------------------------------------------- 86 87 // --- business ------------------------------------------------------------- 88 89 // --- object basics -------------------------------------------------------- 90 91 }