Where can I find a list of Worklight Error Codes

2019-08-10 08:21发布

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条回答
够拽才男人
2楼-- · 2019-08-10 08:39

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.

查看更多
登录 后发表回答