com.vaadin.flow.router.
Class InternalServerError
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.router.InternalServerError
-
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasErrorParameter<Exception>, Serializable
@Tag(value="div") @NoTheme public class InternalServerError extends Component implements HasErrorParameter<Exception>
This is a basic default error view shown on exceptions during navigation.
See Also:
-
-
Constructor Summary
Constructors Constructor and Description InternalServerError()
-
Method Summary
All Methods Modifier and Type Method and Description protected boolean
hasLogBinding()
Returns
true
if there is a logging binding available for SLF4J.int
setErrorParameter(BeforeEnterEvent event, ErrorParameter<Exception> parameter)
Method called 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, getUI, hasListener, 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<Exception> parameter)
Description copied from interface:
HasErrorParameter
Method called before rendering the exception view.
Note! returned int should be a valid
HttpServletResponse
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
HttpServletResponse
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
-
-