Package muntjac :: Package ui :: Module upload :: Class FailedEvent
[hide private]
[frames] | no frames]

Class FailedEvent

source code

      object --+            
               |            
util.EventObject --+        
                   |        
     component.Event --+    
                       |    
           FinishedEvent --+
                           |
                          FailedEvent
Known Subclasses:

Upload.FailedEvent event is sent when the upload is received, but the reception is interrupted for some reason.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, source, filename, MIMEType, length, reason=None)
Constructs a new event with the specified source component.
source code
 
getReason(self)
Gets the exception that caused the failure.
source code

Inherited from FinishedEvent: getFilename, getLength, getMIMEType, getUpload

Inherited from component.Event: getComponent

Inherited from util.EventObject: getSource

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, filename, MIMEType, length, reason=None)
(Constructor)

source code 

Constructs a new event with the specified source component.

Parameters:
  • source - the source of the file.
  • filename - the received file name.
  • MIMEType - the MIME type of the received file.
  • length - the length of the received file.
Overrides: object.__init__
(inherited documentation)

getReason(self)

source code 

Gets the exception that caused the failure.

Returns:
the exception that caused the failure, null if n/a