public class FileQueueErrorEvent
extends java.lang.Object
FileQueueErrorHandler and register it via the .Uploader#setFileQueueErrorHandler(FileQueueErrorHandler) method in order to access file
queue error events.
Note that the 'fileQueueError' event is fired for each file that was not queued after the File Selection Dialog window is closed. A file may not be queued for several reasons such as, the file exceeds the file size, the file is empty or a file or queue limit has been exceeded.
The reason for the queue error is specified by the getErrorCode() method.
| Modifier and Type | Class and Description |
|---|---|
static class |
FileQueueErrorEvent.ErrorCode
An enumeration of reported file queue error code types.
|
| Constructor and Description |
|---|
FileQueueErrorEvent(File file,
int errorCode,
java.lang.String message)
This constructor is intended for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
FileQueueErrorEvent.ErrorCode |
getErrorCode()
The error code returned by the Uploader component in the case of a file queu failure,
conveniently converted to an enumeration type.
|
int |
getErrorCodeAsInt()
The original numeric error code returned by the Uploader component in the case of a file
queue failure.
|
File |
getFile()
Return the details of the file that experienced the error in the queue.
|
java.lang.String |
getMessage()
Return a human readable error message explaining the cause of the file queue failure.
|
public FileQueueErrorEvent(File file, int errorCode, java.lang.String message)
FileQueuedHandler.file - The file instance that experienced an error in the queue.errorCode - The error code returned by the Uploader component in the case of a file
queue failure.message - A human readable error message explaining the cause of the file queue failure.public File getFile()
public FileQueueErrorEvent.ErrorCode getErrorCode()
public int getErrorCodeAsInt()
public java.lang.String getMessage()