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
Fields inherited from class io.jmix.flowui.kit.component.upload.event.FileUploadFinishedEvent
fileName, length, mimeType
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFileUploadFailedEvent
(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, getMimeType
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
reason
-
-
Constructor Details
-
FileUploadFailedEvent
-
-
Method Details
-
getReason
- Returns:
- the exception that caused the failure, or
null
otherwise
-
getContentLength
public long getContentLength()- Overrides:
getContentLength
in classFileUploadFinishedEvent<C extends com.vaadin.flow.component.Component>
- Returns:
- the number of uploaded bytes
-