Class MockInternalSeverError

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.router.InternalServerError
com.vaadin.browserless.internal.MockInternalSeverError
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.HasErrorParameter<Exception>, Serializable

@DefaultErrorHandler public class MockInternalSeverError extends com.vaadin.flow.router.InternalServerError
Replaces the default InternalServerError exception handler with an implementation that exposes the error details as element properties, so that they show up in the pretty-printed component tree.

For internal use only. May be renamed or removed in a future release.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the error view.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    setErrorParameter(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<Exception> parameter)
     

    Methods inherited from class com.vaadin.flow.router.InternalServerError

    hasLogBinding

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • MockInternalSeverError

      public MockInternalSeverError()
      Creates the error view.
  • Method Details

    • setErrorParameter

      public int setErrorParameter(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<Exception> parameter)
      Specified by:
      setErrorParameter in interface com.vaadin.flow.router.HasErrorParameter<Exception>
      Overrides:
      setErrorParameter in class com.vaadin.flow.router.InternalServerError