Class FatalStateException

All Implemented Interfaces:
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:
  • Constructor Details

    • FatalStateException

      public FatalStateException()
      Creates a new FatalStateException.
    • FatalStateException

      public FatalStateException(String message, 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(String message)
      Creates a new FatalStateException with the specified detail message.
      Parameters:
      message - detail message
    • FatalStateException

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