Class InvalidConfigException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidConfigException
    extends java.lang.RuntimeException
    Indicates an invalid configuration was supplied by the user.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidConfigException​(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey)
      Creates a new invalid config exception about a specific config.
      InvalidConfigException​(java.lang.String subjectKey, java.lang.String subject, java.lang.String configKey, java.lang.Throwable cause)
      Creates a new invalid config exception about a specific config with an exception regarding the cause of the invalidity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String configKey()
      Returns the config key of the config.
      java.lang.String subject()
      Returns the string representation of the subject of the config.
      java.lang.String subjectKey()
      Returns the subject key of the config.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidConfigException

        public InvalidConfigException​(java.lang.String subjectKey,
                                      java.lang.String subject,
                                      java.lang.String configKey)
        Creates a new invalid config exception about a specific config.
        Parameters:
        subjectKey - config's subject key
        subject - config's subject
        configKey - config's config key
      • InvalidConfigException

        public InvalidConfigException​(java.lang.String subjectKey,
                                      java.lang.String subject,
                                      java.lang.String configKey,
                                      java.lang.Throwable cause)
        Creates a new invalid config exception about a specific config with an exception regarding the cause of the invalidity.
        Parameters:
        subjectKey - config's subject key
        subject - config's subject
        configKey - config's config key
        cause - cause of the invalidity
    • Method Detail

      • subjectKey

        public java.lang.String subjectKey()
        Returns the subject key of the config.
        Returns:
        subject key
      • subject

        public java.lang.String subject()
        Returns the string representation of the subject of the config.
        Returns:
        subject
      • configKey

        public java.lang.String configKey()
        Returns the config key of the config.
        Returns:
        config key