Class ConfigurationParameterParseException

java.lang.Object
java.lang.Throwable
com.siperf.confio.exceptions.ConfigurationParseException
com.siperf.confio.exceptions.ConfigurationParameterParseException
All Implemented Interfaces:
Serializable

public class ConfigurationParameterParseException extends ConfigurationParseException
Exception thrown when an error occurs while parsing a configuration parameter.
See Also:
  • Constructor Details

    • ConfigurationParameterParseException

      public ConfigurationParameterParseException(String parameterKey, String message)
      Creates a new exception with the specified parameter key and message.
      Parameters:
      parameterKey - the parameter key that caused the error
      message - error message
    • ConfigurationParameterParseException

      public ConfigurationParameterParseException(String parameterKey, String parameterName, String message)
      Creates a new exception with the specified parameter key, name and message.
      Parameters:
      parameterKey - the parameter key that caused the error
      parameterName - the parameter name (optional, can be null)
      message - error message
    • ConfigurationParameterParseException

      public ConfigurationParameterParseException(String sectionName, String parameterKey, String parameterName, String message)
      Creates a new exception with the specified section name, parameter key, name and message.
      Parameters:
      sectionName - the section name (optional, can be null)
      parameterKey - the parameter key that caused the error
      parameterName - the parameter name (optional, can be null)
      message - error message
  • Method Details

    • getSectionName

      public String getSectionName()
      Returns the section name.
      Returns:
      section name or null if not specified
    • getParameterKey

      public String getParameterKey()
      Returns the parameter key.
      Returns:
      parameter key
    • getParameterName

      public String getParameterName()
      Returns the parameter name.
      Returns:
      parameter name or null if not specified
    • createMessage

      protected String createMessage(boolean brief)
      Overrides:
      createMessage in class ConfigurationParseException