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 TypeMethodDescriptionintsetErrorParameter(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
setRouteNotFoundErrorParameterMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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:
setErrorParameterin interfacecom.vaadin.flow.router.HasErrorParameter<com.vaadin.flow.router.NotFoundException>- Overrides:
setErrorParameterin classcom.vaadin.flow.router.RouteNotFoundError
-