Class FileUploadFailedEvent<C extends com.vaadin.flow.component.Component>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
io.jmix.flowui.kit.component.upload.event.FileUploadFinishedEvent<C>
io.jmix.flowui.kit.component.upload.event.FileUploadFailedEvent<C>
Type Parameters:
C - type of upload field
All Implemented Interfaces:
Serializable

public class FileUploadFailedEvent<C extends com.vaadin.flow.component.Component> extends FileUploadFinishedEvent<C>
Event is fired when FailedEvent of Upload is occurred. See Upload.addFailedListener(ComponentEventListener) for details.
See Also:
  • Field Details

  • Constructor Details

    • FileUploadFailedEvent

      public FileUploadFailedEvent(C source, String fileName, String mimeType, long length, Exception reason)
  • Method Details

    • getReason

      public Exception getReason()
      Returns:
      the exception that caused the failure, or null otherwise
    • getContentLength

      public long getContentLength()
      Overrides:
      getContentLength in class FileUploadFinishedEvent<C extends com.vaadin.flow.component.Component>
      Returns:
      the number of uploaded bytes