errorCode property
[Internet Explorer 10. While supported in pre-release versions, this property is obsolete and error should be used instead. Applications using this property should be updated accordingly.]
If a request fails, this property contains a code indicating the reason for the failure.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
errcode = object.errorCode |
Property values
Type: Number
A value corresponding to an error code supported by the operation associated with the request.
Exceptions
This method can throw the following DOMException exceptions:
Note As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
| Exception properties | Condition |
|---|---|
|
The request is not complete. |
Standards information
Remarks
The value of this property is not set until after the readyState property is set to "IDBRequest.DONE". .
Show:
