Class ConfigMappingException

All Implemented Interfaces:
Serializable

public class ConfigMappingException extends ConfigException
Configuration value mapping exception.

Thrown when there is an error mapping a String configuration value to a specific Java type.

See Also:
  • Constructor Details

    • ConfigMappingException

      public ConfigMappingException(Config.Key key, String detail)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      detail - detailed information of mapping failure.
    • ConfigMappingException

      public ConfigMappingException(Config.Key key, String detail, Throwable cause)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      detail - detailed information of mapping failure.
      cause - root exception cause.
    • ConfigMappingException

      public ConfigMappingException(Config.Key key, Type type, String detail)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      type - requested mapping type.
      detail - detailed information of mapping failure.
    • ConfigMappingException

      public ConfigMappingException(Config.Key key, Type type, String detail, Throwable cause)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      type - requested mapping type.
      detail - detailed information about the configuration value mapping failure.
      cause - root exception cause.
    • ConfigMappingException

      public ConfigMappingException(Config.Key key, String value, Class<?> type, Throwable cause)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      value - mapped configuration value.
      type - requested mapping type.
      cause - root exception cause.
    • ConfigMappingException

      public ConfigMappingException(Config.Key key, String value, String detail, Throwable cause)
      Create new configuration value mapping exception with additional contextual details describing the failure.
      Parameters:
      key - key associated with the mapped configuration value.
      value - mapped configuration value.
      detail - detailed information about the configuration value mapping failure.
      cause - root exception cause.