You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.

Class ErrorEvent

    • Constructor Detail

      • ErrorEvent

        public ErrorEvent​(Throwable throwable)

        Creates an error event which wraps the given throwable.

        Parameters:

        throwable - the throwable to wrap

    • Method Detail

      • getThrowable

        public Throwable getThrowable()

        Gets the contained throwable, the cause of the error.

        Returns:

        the throwable that caused the error

      • findErrorHandler

        public static ErrorHandler findErrorHandler​(VaadinSession session)

        Finds the error handler for the given session.

        Parameters:

        session - the active session

        Returns:

        An ErrorHandler for the session or null if none was found