Class ConfigException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- uk.ac.starlink.ttools.plot2.config.ConfigException
-
- All Implemented Interfaces:
java.io.Serializable
public class ConfigException extends java.lang.Exception
Exception thrown when a configuration input value is not suitable.- Since:
- 26 Feb 2013
- Author:
- Mark Taylor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigException(ConfigKey<?> key, java.lang.String msg)
Constructor.ConfigException(ConfigKey<?> key, java.lang.String msg, java.lang.Throwable cause)
Constructor with chained exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigKey<?>
getConfigKey()
Returns the key whose value this exception applies to.
-
-
-
Constructor Detail
-
ConfigException
public ConfigException(ConfigKey<?> key, java.lang.String msg, java.lang.Throwable cause)
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
public ConfigException(ConfigKey<?> key, java.lang.String msg)
Constructor.- Parameters:
key
- key whose value was being solicited when the error occurredmsg
- error message, may reference value but should not name key
-
-
Method Detail
-
getConfigKey
public ConfigKey<?> getConfigKey()
Returns the key whose value this exception applies to.- Returns:
- config key
-
-