Package com.codingchili.core.context
Class CoreRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingchili.core.context.CoreRuntimeException
- All Implemented Interfaces:
CoreExceptionFormat
,Serializable
- Direct Known Subclasses:
AuthorizationRequiredException
,CommandAlreadyExistsException
,ConfigurationParseException
,FileReadException
,FileWriteException
,HandlerMissingException
,InvalidConfigurationPath
,NoFileStoreRegisteredException
,NoSuchFileException
,NoSuchResourceException
,QueryFormatException
,RequestValidationException
,SecurityMissingDependencyException
,SerializerPayloadException
,TimerSourceException
Runtime exception.
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionCoreRuntimeException(String description)
CoreRuntimeException(String error, ResponseStatus status)
CoreRuntimeException(String description, Throwable cause)
creates a runtime exception with a stacktrace.CoreRuntimeException(Throwable cause)
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CoreRuntimeException
- Parameters:
description
- of the generated error and the cause.
-
CoreRuntimeException
creates a runtime exception with a stacktrace.- Parameters:
description
- why we are throwing an exceptioncause
- the original exception.
-
CoreRuntimeException
- Parameters:
cause
- the original exception.
-
CoreRuntimeException
- Parameters:
error
- description of the error and the cause.status
- the error level.
-
-
Method Details
-
status
- Specified by:
status
in interfaceCoreExceptionFormat
- Returns:
- the error status, most likely ERROR.
-