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.resolve; 17 18 import java.util.List; 19 20 /** 21 * Signals that a property resolvement is not possible since a placeholder has a 22 * <code>null</code> value. 23 */ 24 public class NullValuePropertyException extends UnresolvablePropertyException 25 { 26 // ********************************* Fields ********************************* 27 28 // --- constants ------------------------------------------------------------ 29 30 /** 31 * The class version identifier. 32 * <p> 33 * The value of this constant is {@value}. 34 * </p> 35 */ 36 private static final long serialVersionUID = 1L; 37 38 // --- members -------------------------------------------------------------- 39 40 // ****************************** Initializer ******************************* 41 42 // ****************************** Constructors ****************************** 43 44 /** 45 * Convenience constructor without root cause. 46 * 47 * @param propertyKey the key to the unknown property. 48 * @param path the path to the unknown property point. 49 */ 50 public NullValuePropertyException(final String propertyKey, 51 final List<String> path) 52 { 53 this(null, propertyKey, path); 54 } 55 56 /** 57 * Default 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 * @param propertyKey the key to the unknown property. 63 * @param path the path to the unknown property point. 64 */ 65 public NullValuePropertyException(final Throwable cause, 66 final String propertyKey, final List<String> path) 67 { 68 super(cause, propertyKey, path); 69 } 70 71 // ****************************** Inner Classes ***************************** 72 73 // ********************************* Methods ******************************** 74 75 // --- init ----------------------------------------------------------------- 76 77 // --- get&set -------------------------------------------------------------- 78 79 // --- business ------------------------------------------------------------- 80 81 // --- object basics -------------------------------------------------------- 82 83 }