All Implemented Interfaces:
AttachNotifier, ClickNotifier<VerticalLayout>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasOrderedComponents<VerticalLayout>, HasSize, HasStyle, FlexComponent<VerticalLayout>, ThemableLayout, HasErrorParameter<Exception>, Serializable

@DefaultErrorHandler @PermitAll @PermitAll public class ErrorView extends VerticalLayout implements HasErrorParameter<Exception>
View used to display an error message when navigation fails due to an exception.
See Also:
  • Constructor Details

    • ErrorView

      public ErrorView()
  • Method Details

    • setErrorParameter

      public int setErrorParameter(BeforeEnterEvent event, ErrorParameter<Exception> parameter)
      This method sets the error parameter to display the error message and returns an HTTP status code of 500 Internal Server Error.
      Specified by:
      setErrorParameter in interface HasErrorParameter<Exception>
      Parameters:
      event - a BeforeEnterEvent object
      parameter - an ErrorParameter object containing the caught exception
      Returns:
      an int representing the HTTP status code 500 Internal Server Error