Class FatalException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FatalException
    extends java.lang.RuntimeException
    The FatalException class is used to convert any checked exception into an unchecked exception to terminate the current thread due to unrecoverable and unexpected error conditions.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FatalException​(java.lang.String message)
      Create an unchecked exception.
      FatalException​(java.lang.Throwable e)
      Convert an exception into an unchecked exception, after appropriately reporting the unchecked exception to the error stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getOriginalException()
      Return the original checked exception that was converted into an unchecked exception (if any)
      • 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

      • FatalException

        public FatalException​(java.lang.String message)
        Create an unchecked exception. This should be the default unchecked exception used in Vinci to indicate unrecoverable errors due to unexpected conditions.
        Parameters:
        message - A textual description of the error.
      • FatalException

        public FatalException​(java.lang.Throwable e)
        Convert an exception into an unchecked exception, after appropriately reporting the unchecked exception to the error stream.
        Parameters:
        e - The exception to convert to an unchecked FatalException.
    • Method Detail

      • getOriginalException

        public java.lang.Throwable getOriginalException()
        Return the original checked exception that was converted into an unchecked exception (if any)
        Returns:
        The original exception, or null if this fatal exception was not the result of a checked exception conversion.