Class MissingConfigurationKeyException

All Implemented Interfaces:
Serializable

public class MissingConfigurationKeyException extends ConfigurationException
A configuration exception indicating that a configuration key was not found.
Author:
Garret Wilson
See Also:
  • Constructor Details

    • MissingConfigurationKeyException

      public MissingConfigurationKeyException(@Nonnull String key)
      Key constructor.
      Parameters:
      key - The key of the configuration configuration that was not found.
    • MissingConfigurationKeyException

      public MissingConfigurationKeyException(@Nullable String message, @Nonnull String key)
      Message and key constructor.
      Parameters:
      message - An explanation of why the input could not be parsed, or null if no message should be used.
      key - The key of the configuration configuration that was not found.
    • MissingConfigurationKeyException

      public MissingConfigurationKeyException(@Nonnull String key, @Nullable Throwable cause)
      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 or null 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, or null if no message should be used.
      key - The key of the configuration configuration that was not found.
      cause - The cause error or null if the cause is nonexistent or unknown.
  • Method Details

    • getKey

      public String getKey()
      Returns:
      The key for the missing configuration.