@CssImport(value="./flowingcode/error-window.css")
public class ErrorWindow
extends com.vaadin.flow.component.dialog.Dialog
This class has several constructors that allow specifying the cause of the error, an error message, whether the application is in production mode, and the internationalization of the error message.
This class also provides constructors that accept an ErrorDetails instance, which provides additional information about the error.
A unique identifier is assigned to the dialog window, for use in reporting the error when in production mode.
ErrorDetails,
Serialized Form| Constructor and Description |
|---|
ErrorWindow(ErrorDetails errorDetails) |
ErrorWindow(ErrorDetails errorDetails,
boolean productionMode) |
ErrorWindow(ErrorDetails errorDetails,
ErrorWindowI18n i18n)
Constructs and initializes an ErrorWindow object with the supplied error details and internationalization.
|
ErrorWindow(Throwable cause)
Constructs and initializes an ErrorWindow object with the supplied cause and default production mode and i18n.
|
ErrorWindow(Throwable cause,
ErrorWindowI18n i18n)
Constructs and initializes an ErrorWindow object with the supplied details and and default production mode.
|
ErrorWindow(Throwable cause,
String errorMessage)
Constructs and initializes an ErrorWindow object with the supplied details and default and default production mode and i18n.
|
ErrorWindow(Throwable cause,
String errorMessage,
boolean productionMode)
Constructs and initializes an ErrorWindow object with the supplied details and default i18n.
|
ErrorWindow(Throwable cause,
String errorMessage,
boolean productionMode,
ErrorWindowI18n i18n)
Constructs and initializes an ErrorWindow object with the supplied details.
|
ErrorWindow(Throwable cause,
String errorMessage,
ErrorWindowI18n i18n)
Constructs and initializes an ErrorWindow object with the supplied details and default production mode.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.vaadin.flow.component.Html |
createErrorLabel() |
protected com.vaadin.flow.component.Component |
createStackTraceArea() |
Stream<com.vaadin.flow.component.Component> |
getChildren() |
add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, addThemeVariants, close, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, remove, removeAll, removeThemeVariants, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidthgetAriaLabelString, isOpenedBoolean, setAriaLabeladdListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ErrorWindow(Throwable cause)
cause: - The cause of the errorpublic ErrorWindow(Throwable cause, ErrorWindowI18n i18n)
cause: - The cause of the errori18n: - The internationalization of the ErrorWindowpublic ErrorWindow(Throwable cause, String errorMessage)
cause: - The cause of the errorerrorMessage: - An optional error messagepublic ErrorWindow(Throwable cause, String errorMessage, ErrorWindowI18n i18n)
cause: - The cause of the errorerrorMessage: - An optional error messagei18n: - The internationalization of the ErrorWindowpublic ErrorWindow(Throwable cause, String errorMessage, boolean productionMode)
cause: - The cause of the errorerrorMessage: - An optional error messageproductionMode: - The mode in which the Application is running. If true, a code is displayed with error details, else debug information is shownpublic ErrorWindow(Throwable cause, String errorMessage, boolean productionMode, ErrorWindowI18n i18n)
cause: - The cause of the errorerrorMessage: - An optional error messageproductionMode: - The mode in which the Application is running. If true, a code is displayed with error details, else debug information is showni18n: - The internationalization of the ErrorWindowpublic ErrorWindow(ErrorDetails errorDetails)
public ErrorWindow(ErrorDetails errorDetails, boolean productionMode)
public ErrorWindow(ErrorDetails errorDetails, ErrorWindowI18n i18n)
errorDetails: - The ErrorDetails objecti18n: - The internationalization of the ErrorWindowpublic Stream<com.vaadin.flow.component.Component> getChildren()
getChildren in class com.vaadin.flow.component.dialog.Dialogprotected com.vaadin.flow.component.Component createStackTraceArea()
protected com.vaadin.flow.component.Html createErrorLabel()
Copyright © 2017–2023 Flowing Code. All rights reserved.