1 package com.github.sbugat.rundeckmonitor.configuration;
2
3 /**
4 * Exception to use when a mandatory property is missing.
5 *
6 * @author Sylvain Bugat
7 *
8 */
9 public final class MissingPropertyException extends Exception {
10
11 /** Unique Serial ID. */
12 private static final long serialVersionUID = -4199859651106152630L;
13
14 /** Name of the missing property. */
15 private final String property;
16
17 /**
18 * Constructor copy the missing property name.
19 *
20 * @param propertyArg missing property name
21 */
22 public MissingPropertyException(final String propertyArg) {
23 property = propertyArg;
24 }
25
26 /**
27 * Get the missing property name.
28 *
29 * @return missing property name
30 */
31 public String getProperty() {
32 return property;
33 }
34 }