Class ConfigException
java.lang.Object
java.lang.Throwable
java.lang.Exception
uk.ac.starlink.ttools.plot2.config.ConfigException
- All Implemented Interfaces:
Serializable
Exception thrown when a configuration input value is not suitable.
- Since:
- 26 Feb 2013
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigException
(ConfigKey<?> key, String msg) Constructor.ConfigException
(ConfigKey<?> key, String msg, Throwable cause) Constructor with chained exception. -
Method Summary
Modifier and TypeMethodDescriptionConfigKey<?>
Returns the key whose value this exception applies to.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigException
Constructor with chained exception.- Parameters:
key
- key whose value was being solicited when the error occurredmsg
- error message, may reference value but should not name keycause
- chained exception, if any
-
ConfigException
Constructor.- Parameters:
key
- key whose value was being solicited when the error occurredmsg
- error message, may reference value but should not name key
-
-
Method Details
-
getConfigKey
Returns the key whose value this exception applies to.- Returns:
- config key
-