- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigException(String message)ConfigException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigExceptionasConfigException(Throwable e)Make a config exception out of an exception.static ConfigExceptionasConfigException(Throwable e, int skipTopOfStack)Make a config exception out of an exception.UncheckedConfigExceptionasUncheckedException()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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.
-
-