-->

Where can I find a list of Worklight Error Codes

2019-08-10 07:48发布

问题:

Where can I find a list of the possible error codes for the various sections of Worklight?

Specifically, when I'm calling WL.JSONStore.findAll() my onFailure callback is being called and the error code is -50. I can't find this number anywhere in the code nor in the Worklight documentation, or on the web so far.

I've seen references to worklight.js having it, but it is not there. Ditto for WLResponse.h and WLFailResponse.h.

回答1:

The list of error codes is in the JSONStore Documentation. Search for List of error codes.

Regarding the specific error code you mentioned: -50 ("PERSISTENT_STORE_NOT_OPEN") means JSONStore is closed, try calling WL.JSONStore.init first.