Class EditorErrorEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
com.wontlost.ckeditor.event.EditorErrorEvent
- All Implemented Interfaces:
Serializable
Editor error event.
Fired when the editor encounters an error, including initialization errors, runtime errors, etc.
Usage example:
editor.addEditorErrorListener(event -> {
EditorError error = event.getError();
logger.error("Editor error [{}]: {}", error.getCode(), error.getMessage());
if (error.isRecoverable()) {
// Attempt recovery
}
});
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEditor error details.static enumError severity level. -
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionEditorErrorEvent(VaadinCKEditor source, boolean fromClient, EditorErrorEvent.EditorError error) Create an editor error event. -
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class EventObject
toString
-
Constructor Details
-
EditorErrorEvent
public EditorErrorEvent(VaadinCKEditor source, boolean fromClient, EditorErrorEvent.EditorError error) Create an editor error event.- Parameters:
source- the editor component that fired the eventfromClient- whether the event originated from the clienterror- the error details
-
-
Method Details
-
getError
-