Package com.vaadin.browserless.internal
Class MockRouteNotFoundError
-
- 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,java.io.Serializable
@Tag(value = "div")@DefaultErrorHandler() public class MockRouteNotFoundError extends RouteNotFoundErrorThis route gets registered by default in Routes, so that Karibu-Testing can catch any navigation to a missing route and can respond with an informative exception.
-
-
Field Summary
Fields Modifier and Type Field Description private NotFoundExceptioncauseprivate final Stream<Component>childrenprivate final ClassListclassNamesprivate final Elementelementprivate final Optional<String>idprivate StringclassNameprivate final Optional<Component>parentprivate final BooleanisAttachedprivate StringtestIdprivate final Optional<UI>uiprivate final Stylestyleprivate final UIuiOrThrowprivate BooleanisVisible
-
Constructor Summary
Constructors Constructor Description MockRouteNotFoundError()
-
Method Summary
Modifier and Type Method Description final NotFoundExceptiongetCause()final UnitsetCause(NotFoundException value)IntegersetErrorParameter(BeforeEnterEvent event, ErrorParameter<NotFoundException> parameter)-
Methods inherited from class com.vaadin.flow.component.Component
bindVisible, findAncestor, findAncestor, getChildren, getElement, getId, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setId, setTestId, setVisible, whenAttached -
Methods inherited from class com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName -
Methods inherited from class com.vaadin.flow.router.AbstractRouteNotFoundError
setRouteNotFoundErrorParameter -
Methods inherited from class com.vaadin.flow.component.AttachNotifier
addAttachListener -
Methods inherited from class com.vaadin.flow.component.DetachNotifier
addDetachListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCause
final NotFoundException getCause()
-
setErrorParameter
Integer setErrorParameter(BeforeEnterEvent event, ErrorParameter<NotFoundException> parameter)
-
-
-
-