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
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
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

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

static String TYPE_MISMATCH_ERR


Type mismatch error


Supported Platforms
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10

static String PATH_EXISTS_ERR


Directory already exists error


Supported Platforms
 - BlackBerry PlayBook 1.0+
 - BlackBerry 10

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Feb 11 2013 14:51:06 GMT-0500 (EST)