com.vaadin.flow.router.
Class InternalServerError
All Implemented Interfaces:
AttachNotifier
, DetachNotifier
, HasElement
, HasStyle
, HasErrorParameter<Exception>
, Serializable
This is a basic default error view shown on exceptions during navigation.
Since:
1.0
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns
true
if there is a logging binding available for SLF4J.int
setErrorParameter
(BeforeEnterEvent event, ErrorParameter<Exception> 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, 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
-
InternalServerError
public InternalServerError()
-
-
Method Details
-
setErrorParameter
Description copied from interface:
HasErrorParameter
Callback executed before rendering the exception view.
Note! returned int should be a valid
HttpStatusCode
codeSpecified by:
setErrorParameter
in interfaceHasErrorParameter<Exception>
Parameters:
event
- the before navigation event for this requestparameter
- error parameter containing custom exception and caught exceptionReturns:
a valid
HttpStatusCode
code -
hasLogBinding
protected boolean hasLogBinding()Returns
true
if there is a logging binding available for SLF4J.Returns:
true
if there is a SLF4J logging binding
-