Windows Dev Center

errorCode property

[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.

ValueCondition
IDBDatabaseException.NO_ERR
0

There is no error; the request completed successfully.

Any non-zero value

Non-zero values correspond to error codes that are generated by the operation associated with the request. For more information, see the appropriate reference page.

 

Exceptions

This method can throw the following DOMException exceptions:

Note  As of a Windows Store app using JavaScript, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.
Exception propertiesCondition
IDBRequest.NOT_ALLOWED_ERR
6

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:
© 2015 Microsoft