Package io.confound.config
Class MissingConfigurationKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
io.confound.config.ConfigurationException
io.confound.config.MissingConfigurationKeyException
- All Implemented Interfaces:
Serializable
A configuration exception indicating that a configuration key was not found.
- Author:
- Garret Wilson
- See Also:
-
Constructor Summary
ConstructorDescriptionKey constructor.MissingConfigurationKeyException
(String message, String key) Message and key constructor.MissingConfigurationKeyException
(String message, String key, Throwable cause) Message, key, and cause constructor.MissingConfigurationKeyException
(String key, Throwable cause) Cause constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingConfigurationKeyException
Key constructor.- Parameters:
key
- The key of the configuration configuration that was not found.
-
MissingConfigurationKeyException
Message and key constructor.- Parameters:
message
- An explanation of why the input could not be parsed, ornull
if no message should be used.key
- The key of the configuration configuration that was not found.
-
MissingConfigurationKeyException
Cause constructor. The message of the cause will be used if available.- Parameters:
key
- The key of the configuration configuration that was not found.cause
- The cause error ornull
if the cause is nonexistent or unknown.
-
MissingConfigurationKeyException
public MissingConfigurationKeyException(@Nullable String message, @Nonnull String key, @Nullable Throwable cause) Message, key, and cause constructor.- Parameters:
message
- An explanation of why the input could not be parsed, ornull
if no message should be used.key
- The key of the configuration configuration that was not found.cause
- The cause error ornull
if the cause is nonexistent or unknown.
-
-
Method Details
-
getKey
- Returns:
- The key for the missing configuration.
-