java.lang.Object
java.lang.Throwable
java.lang.Exception
net.morimekta.config.ConfigException
- All Implemented Interfaces:
Serializable
Exception related to config handling and loading.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigException(String message) ConfigException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigExceptionMake a config exception out of an exception.static ConfigExceptionasConfigException(Throwable e, int skipTopOfStack) Make a config exception out of an exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigException
- Parameters:
message- Exception message.
-
ConfigException
- Parameters:
message- Exception message.cause- Cause of exception.
-
-
Method Details
-
asUncheckedException
- Returns:
- An unchecked version of the exception.
-
asConfigException
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
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.
-