Class FatalStateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FatalStateException
    extends UnreachableCodeException

    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:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FatalStateException

        public FatalStateException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Creates a new FatalStateException with the specified detail message and cause.
        Parameters:
        message - detail message
        cause - cause-Throwable of the new exception
      • FatalStateException

        public FatalStateException​(java.lang.String message)
        Creates a new FatalStateException with the specified detail message.
        Parameters:
        message - detail message
      • FatalStateException

        public FatalStateException​(java.lang.Throwable cause)
        Creates a new FatalStateException with the specified cause.
        Parameters:
        cause - cause-Throwable of the new exception