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:
-
FailedEvent- Serialized Form
-
Field Summary
FieldsFields inherited from class io.jmix.flowui.kit.component.upload.event.FileUploadFinishedEvent
fileName, length, mimeTypeFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionFileUploadFailedEvent(C source, String fileName, String mimeType, long length, Exception reason) -
Method Summary
Methods inherited from class io.jmix.flowui.kit.component.upload.event.FileUploadFinishedEvent
getFileName, getMimeTypeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
reason
-
-
Constructor Details
-
FileUploadFailedEvent
-
-
Method Details
-
getReason
- Returns:
- the exception that caused the failure, or
nullotherwise
-
getContentLength
public long getContentLength()- Overrides:
getContentLengthin classFileUploadFinishedEvent<C extends com.vaadin.flow.component.Component>- Returns:
- the number of uploaded bytes
-