Package com.storedobject.vaadin.util
Class InvalidLinkError
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.router.AbstractRouteNotFoundError
com.vaadin.flow.router.RouteNotFoundError
com.storedobject.vaadin.util.InvalidLinkError
- 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<com.vaadin.flow.router.NotFoundException>
,Serializable
public class InvalidLinkError
extends com.vaadin.flow.router.RouteNotFoundError
The InvalidLinkError class is an error handler that extends the
RouteNotFoundError class and is used to manage invalid or non-existent
application links.
When triggered, it provides a notification to the user indicating that
the application link is invalid and sets the HTTP response status to 404
(Not Found).
- Author:
- Syam
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
setErrorParameter
(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<com.vaadin.flow.router.NotFoundException> parameter) Methods inherited from class com.vaadin.flow.router.AbstractRouteNotFoundError
setRouteNotFoundErrorParameter
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
-
InvalidLinkError
public InvalidLinkError()
-
-
Method Details
-
setErrorParameter
public int setErrorParameter(com.vaadin.flow.router.BeforeEnterEvent event, com.vaadin.flow.router.ErrorParameter<com.vaadin.flow.router.NotFoundException> parameter) - Specified by:
setErrorParameter
in interfacecom.vaadin.flow.router.HasErrorParameter<com.vaadin.flow.router.NotFoundException>
- Overrides:
setErrorParameter
in classcom.vaadin.flow.router.RouteNotFoundError
-