Class FatalStateException
- All Implemented Interfaces:
Serializable
A FatalStateException is a specialized IllegalStateException to emphasize the fatal seriousness of
the program state.
It is intended for situations where the programmer would favor the program to shut down or restart because a fatal damage of internal structures or a fatal violation of internal preconditions signal that the program is completely out of the intended state and therefore the future behavior is unpredictable and business data can be lost or damaged.
It is intended to immediately grab the attention of an administrator, supporter, developer and so on and alarm them about an extremely serious problem that is critical for the system and much more dangerous than a "simple" software bug.
Therefore it should be used very sparsely!
- Author:
- agz
- See Also:
-
Field Summary
Fields inherited from class com.saperion.common.lang.exception.UnreachableCodeException
MESSAGE_HEADER -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newFatalStateException.FatalStateException(String message) Creates a newFatalStateExceptionwith the specified detail message.FatalStateException(String message, Throwable cause) Creates a newFatalStateExceptionwith the specified detail message and cause.FatalStateException(Throwable cause) Creates a newFatalStateExceptionwith the specified 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
-
FatalStateException
public FatalStateException()Creates a newFatalStateException. -
FatalStateException
Creates a newFatalStateExceptionwith the specified detail message and cause.- Parameters:
message- detail messagecause- cause-Throwableof the new exception
-
FatalStateException
Creates a newFatalStateExceptionwith the specified detail message.- Parameters:
message- detail message
-
FatalStateException
Creates a newFatalStateExceptionwith the specified cause.- Parameters:
cause- cause-Throwableof the new exception
-