error property
The error that occurred while reading a File, Blob, or MSStream object.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.error |
Property values
Type: DOMError
The error type (see table below).
Exceptions
Error codes map directly to W3C file errors, as described in the following table.
| Exception | Condition |
|---|---|
|
The resource (File, Blob, or MSStream) could not be found at the time the read was processed. |
|
One of the following occurred:
|
|
The resource could not be read. This may occur due to permission problems on the file. |
|
The resource could not be encoded due to data URL length limitations. |
Remarks
An error that occurs during a read operation fires the onerror event and passes the associated error to the error property.
This property is null unless there is an error.
See also
Show:
