View Javadoc
1   package com.github.sbugat.rundeckmonitor.configuration;
2   
3   /**
4    * Exception to use when a property is invalid (value type mismatch or value mismatch).
5    * 
6    * @author Sylvain Bugat
7    * 
8    */
9   public final class InvalidPropertyException extends Exception {
10  
11  	/** Unique Serial ID. */
12  	private static final long serialVersionUID = 4577273435503511931L;
13  
14  	/** Name of the invalid property. */
15  	private final String property;
16  
17  	/** Value of the invalid property. */
18  	private final String propertyValue;
19  
20  	/**
21  	 * Constructor copy property name and his value.
22  	 * 
23  	 * @param propertyArg property name
24  	 * @param propertyValueArg value of the property
25  	 */
26  	public InvalidPropertyException(final String propertyArg, final String propertyValueArg) {
27  		property = propertyArg;
28  		propertyValue = propertyValueArg;
29  	}
30  
31  	/**
32  	 * Get the property name.
33  	 * 
34  	 * @return property name
35  	 */
36  	public String getProperty() {
37  		return property;
38  	}
39  
40  	/**
41  	 * Get the property value.
42  	 * 
43  	 * @return property value
44  	 */
45  	public String getPropertyValue() {
46  		return propertyValue;
47  	}
48  }