Package java.lang

Class ExceptionInInitializerError

    • Constructor Detail

      • ExceptionInInitializerError

        public ExceptionInInitializerError()
        Constructs a new ExceptionInInitializerError that includes the current stack trace.
      • ExceptionInInitializerError

        public ExceptionInInitializerError​(String detailMessage)
        Constructs a new ExceptionInInitializerError with the current stack trace and the specified detail message.
        Parameters:
        detailMessage - the detail message for this error.
      • ExceptionInInitializerError

        public ExceptionInInitializerError​(Throwable exception)
        Constructs a new ExceptionInInitializerError with the current stack trace and the specified cause. The exception should be the one which originally occurred in the class initialization code.
        Parameters:
        exception - the exception that caused this error.
    • Method Detail

      • getException

        public Throwable getException()
        Returns the exception that is the cause of this error.
        Returns:
        the exception that caused this error.
      • getCause

        public Throwable getCause()
        Returns the cause of this error, or null if there is no cause.
        Overrides:
        getCause in class Throwable
        Returns:
        the exception that caused this error.