Package com.vaadin.flow.router
Class RouteAccessDeniedError
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.router.RouteAccessDeniedError
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,HasStyle,HasErrorParameter<AccessDeniedException>,Serializable
@Tag("div")
@DefaultErrorHandler
public class RouteAccessDeniedError
extends Component
implements HasErrorParameter<AccessDeniedException>
This is a default error view shown on access denied routing exceptions.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintsetErrorParameter(BeforeEnterEvent event, ErrorParameter<AccessDeniedException> parameter) Callback 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, 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
-
RouteAccessDeniedError
public RouteAccessDeniedError()
-
-
Method Details
-
setErrorParameter
public int setErrorParameter(BeforeEnterEvent event, ErrorParameter<AccessDeniedException> parameter) Description copied from interface:HasErrorParameterCallback executed before rendering the exception view.Note! returned int should be a valid
HttpStatusCodecode- Specified by:
setErrorParameterin interfaceHasErrorParameter<AccessDeniedException>- Parameters:
event- the before navigation event for this requestparameter- error parameter containing custom exception and caught exception- Returns:
- a valid
HttpStatusCodecode
-