Class AbstractRuntimeException

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractRuntimeException​(java.lang.String message)
      Construct an AbstractRuntimeException with the specified detail message.
      AbstractRuntimeException​(java.lang.String message, java.lang.Throwable cause)
      Construct an AbstractRuntimeException with the specified detail message and nested exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the detail message, including the message from the nested exception if there is one.
      java.lang.Throwable getRootCause()
      Retrieve the innermost cause of this exception, if any.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • AbstractRuntimeException

        public AbstractRuntimeException​(java.lang.String message)
        Construct an AbstractRuntimeException with the specified detail message.
        Parameters:
        message - the detail message (which is saved for later retrieval by the getMessage() method).
      • AbstractRuntimeException

        public AbstractRuntimeException​(java.lang.String message,
                                        java.lang.Throwable cause)
        Construct an AbstractRuntimeException with the specified detail message and nested exception.
        Parameters:
        message - the detail message (which is saved for later retrieval by the getMessage() method).
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.).
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the detail message, including the message from the nested exception if there is one.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the detail message of this Throwable instance (which may be null), including the message from the nested exception if there is one.
      • getRootCause

        public java.lang.Throwable getRootCause()
        Retrieve the innermost cause of this exception, if any.
        Returns:
        the innermost exception, or null if none.