Class FatalStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- com.saperion.common.lang.exception.UnreachableCodeException
-
- com.saperion.common.lang.exception.FatalStateException
-
- All Implemented Interfaces:
java.io.Serializable
public class FatalStateException extends UnreachableCodeException
A
FatalStateExceptionis a specializedIllegalStateExceptionto 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.saperion.common.lang.exception.UnreachableCodeException
MESSAGE_HEADER
-
-
Constructor Summary
Constructors Constructor Description FatalStateException()Creates a newFatalStateException.FatalStateException(java.lang.String message)Creates a newFatalStateExceptionwith the specified detail message.FatalStateException(java.lang.String message, java.lang.Throwable cause)Creates a newFatalStateExceptionwith the specified detail message and cause.FatalStateException(java.lang.Throwable cause)Creates a newFatalStateExceptionwith the specified cause.
-
-
-
Constructor Detail
-
FatalStateException
public FatalStateException()
Creates a newFatalStateException.
-
FatalStateException
public FatalStateException(java.lang.String message, java.lang.Throwable cause)Creates a newFatalStateExceptionwith the specified detail message and cause.- Parameters:
message- detail messagecause- cause-Throwableof the new exception
-
FatalStateException
public FatalStateException(java.lang.String message)
Creates a newFatalStateExceptionwith the specified detail message.- Parameters:
message- detail message
-
FatalStateException
public FatalStateException(java.lang.Throwable cause)
Creates a newFatalStateExceptionwith the specified cause.- Parameters:
cause- cause-Throwableof the new exception
-
-