Class EditorErrorEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
com.wontlost.ckeditor.event.EditorErrorEvent
All Implemented Interfaces:
Serializable

public class EditorErrorEvent extends com.vaadin.flow.component.ComponentEvent<VaadinCKEditor>
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:
  • 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 event
      fromClient - whether the event originated from the client
      error - the error details
  • Method Details