Class ConfigException

    • Constructor Detail

      • ConfigException

        public ConfigException​(String message)
        Parameters:
        message - Exception message.
      • ConfigException

        public ConfigException​(String message,
                               Throwable cause)
        Parameters:
        message - Exception message.
        cause - Cause of exception.
    • Method Detail

      • asUncheckedException

        public UncheckedConfigException asUncheckedException()
        Returns:
        An unchecked version of the exception.
      • asConfigException

        public static ConfigException asConfigException​(Throwable e)
        Make a config exception out of an exception. If it's already a config exception will just pass the exception.
        Parameters:
        e - The exception to possibly wrap.
        Returns:
        The config exception.
      • asConfigException

        public static ConfigException asConfigException​(Throwable e,
                                                        int skipTopOfStack)
        Make a config exception out of an exception. If it's already a config exception will just pass the exception.
        Parameters:
        e - The exception to possibly wrap.
        skipTopOfStack - Number of entries to skip at top of stack trace, including this method.
        Returns:
        The config exception.