Package org.hippoecm.hst.core.component
Class HstComponentFatalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hippoecm.hst.core.component.HstComponentException
org.hippoecm.hst.core.component.HstComponentFatalException
- All Implemented Interfaces:
Serializable
The
HstComponentFatalException
can be thrown to break out of the HST2 request handling.
This exception is suitable for irrecoverable misconfigurations or errors, where you want fail-fast to inform
the developers about the error they made, instead of only logging a warning- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new HstComponent exception.HstComponentFatalException
(String message) Constructs a new HstComponent exception with the given message.HstComponentFatalException
(String msg, Throwable nested) Constructs a new HstComponentConfigurationException exception when the HstComponent needs to do the following: throw an exception include the "nested" exception include a description messageHstComponentFatalException
(Throwable nested) Constructs a new HstComponent exception with the nested exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HstComponentFatalException
public HstComponentFatalException()Constructs a new HstComponent exception. -
HstComponentFatalException
Constructs a new HstComponent exception with the given message. The HstComponent container may use the message write it to a log.- Parameters:
message
- the exception message
-
HstComponentFatalException
Constructs a new HstComponent exception with the nested exception.- Parameters:
nested
- the nested exception
-
HstComponentFatalException
Constructs a new HstComponentConfigurationException exception when the HstComponent needs to do the following:- throw an exception
- include the "nested" exception
- include a description message
- Parameters:
msg
- the exception messagenested
- the nested exception
-