HTML5 FileError
Errors in the asynchronous File API are reported using callbacks that have a FileError object as one of their arguments.
Supported Platform(s)
- BlackBerry PlayBook 1.0+ |
- BlackBerry 10 |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
NOT_FOUND_ERR | Y | Y | Y | ||||
SECURITY_ERR | Y | Y | Y | ||||
ABORT_ERR | Y | Y | Y | ||||
NOT_READABLE_ERR | Y | Y | Y | ||||
ENCODING_ERR | Y | Y | Y | ||||
NO_MODIFICATION_ALLOWED_ERR | Y | Y | Y | ||||
INVALID_STATE_ERR | Y | Y | Y | ||||
SYNTAX_ERR | Y | Y | Y | ||||
INVALID_MODIFICATION_ERR | Y | Y | Y | ||||
QUOTA_EXCEEDED_ERR | Y | Y | Y | ||||
TYPE_MISMATCH_ERR | Y | Y | Y | ||||
PATH_EXISTS_ERR | Y | Y | Y |
Configuration Document Settings
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Permission Elements (PlayBook and BlackBerry 10+) |
---|
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Constants
String | NOT_FOUND_ERR |
String | SECURITY_ERR |
String | ABORT_ERR |
String | NOT_READABLE_ERR |
String | ENCODING_ERR |
String | NO_MODIFICATION_ALLOWED_ERR |
String | INVALID_STATE_ERR |
String | SYNTAX_ERR |
String | INVALID_MODIFICATION_ERR |
String | QUOTA_EXCEEDED_ERR |
String | TYPE_MISMATCH_ERR |
String | PATH_EXISTS_ERR |
Constants
static
String
NOT_FOUND_ERR
File/directory not found error
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
SECURITY_ERR
This is a security error code to be used in situations not covered by any other error codes.
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
ABORT_ERR
This is returned when the read operation was aborted, typically with a call to abort()
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
NOT_READABLE_ERR
This is returned if the file cannot be read, typically due to permission problems that occur after a reference to a file has been acquired (e.g. concurrent lock with another application).
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
ENCODING_ERR
returned when encoding error
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
NO_MODIFICATION_ALLOWED_ERR
returned when file is read-only
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
INVALID_STATE_ERR
The file is in an invalid state is, and the object is unable to perform the action due to it.
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
SYNTAX_ERR
Syntax Error
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
INVALID_MODIFICATION_ERR
Invalid modification error due to security or privacy
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |
static
String
QUOTA_EXCEEDED_ERR
Error processing from asynchronous calls due to size
Supported Platforms | |
---|---|
- BlackBerry PlayBook 1.0+ | |
- BlackBerry 10 |