Package com.vaadin.v7.ui
Class Upload.FailedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.v7.ui.Upload.FinishedEvent
-
- com.vaadin.v7.ui.Upload.FailedEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Upload.NoInputStreamEvent
,Upload.NoOutputStreamEvent
- Enclosing class:
- Upload
@Deprecated public static class Upload.FailedEvent extends Upload.FinishedEvent
Deprecated.Upload.FailedEvent event is sent when the upload is received, but the reception is interrupted for some reason.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description FailedEvent(Upload source, String filename, String mimeType, long length)
Deprecated.FailedEvent(Upload source, String filename, String mimeType, long length, Exception reason)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Exception
getReason()
Deprecated.Gets the exception that caused the failure.-
Methods inherited from class com.vaadin.v7.ui.Upload.FinishedEvent
getFilename, getLength, getMIMEType, getUpload
-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
FailedEvent
public FailedEvent(Upload source, String filename, String mimeType, long length, Exception reason)
Deprecated.- Parameters:
source
- the event source objectfilename
- the received file name.mimeType
- the MIME type of the received file.length
- the length of the received file.reason
- the exception that got raised that caused the failure.
-
-
Method Detail
-
getReason
public Exception getReason()
Deprecated.Gets the exception that caused the failure.- Returns:
- the exception that caused the failure, null if n/a
-
-