Package com.vaadin.flow.router
Class RouteNotFoundError
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.router.RouteNotFoundError
-
- All Implemented Interfaces:
AttachNotifier
,DetachNotifier
,HasElement
,HasErrorParameter<NotFoundException>
,Serializable
@Tag("div") @DefaultErrorHandler public class RouteNotFoundError extends Component implements HasErrorParameter<NotFoundException>
This is a basic default error view shown on routing exceptions.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RouteNotFoundError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
setErrorParameter(BeforeEnterEvent event, ErrorParameter<NotFoundException> parameter)
Callback executed before rendering the exception view.-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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
-
-
-
-
Method Detail
-
setErrorParameter
public int setErrorParameter(BeforeEnterEvent event, ErrorParameter<NotFoundException> parameter)
Description copied from interface:HasErrorParameter
Callback executed before rendering the exception view.Note! returned int should be a valid
HttpServletResponse
code- Specified by:
setErrorParameter
in interfaceHasErrorParameter<NotFoundException>
- Parameters:
event
- the before navigation event for this requestparameter
- error parameter containing custom exception and caught exception- Returns:
- a valid
HttpServletResponse
code
-
-