Class ConfigException

java.lang.Object
java.lang.Throwable
java.lang.Exception
net.morimekta.config.ConfigException
All Implemented Interfaces:
Serializable

public class ConfigException extends Exception
Exception related to config handling and loading.
See Also:
  • Constructor Details

    • 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 Details

    • 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.