We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.router.
Package com.vaadin.flow.router
Class AbstractRouteNotFoundError
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.router.AbstractRouteNotFoundError
All Implemented Interfaces:
AttachNotifier
, DetachNotifier
, HasElement
, HasStyle
, Serializable
Direct Known Subclasses:
This is abstract error view for routing exceptions.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
setRouteNotFoundErrorParameter
(BeforeEnterEvent event, ErrorParameter<? extends RuntimeException> parameter) Default callback for route not found error executed before rendering the exception view.
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
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, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
AbstractRouteNotFoundError
public AbstractRouteNotFoundError()
-
-
Method Details
-
setRouteNotFoundErrorParameter
public int setRouteNotFoundErrorParameter(BeforeEnterEvent event, ErrorParameter<? extends RuntimeException> parameter) Default callback for route not found error executed before rendering the exception view.
Parameters:
event
- the before navigation event for this requestparameter
- error parameter containing custom exception and caught exceptionReturns:
a valid
HttpStatusCode
codeSee Also:
-