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
public class HstComponentFatalException extends HstComponentException
TheHstComponentFatalException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HstComponentFatalException()
Constructs 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 Detail
-
HstComponentFatalException
public HstComponentFatalException()
Constructs a new HstComponent exception.
-
HstComponentFatalException
public HstComponentFatalException(String message)
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
public HstComponentFatalException(Throwable nested)
Constructs a new HstComponent exception with the nested exception.- Parameters:
nested
- the nested exception
-
HstComponentFatalException
public 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 message
- Parameters:
msg
- the exception messagenested
- the nested exception
-
-