Where can I find a list of Worklight Error Codes

亡梦爱人 提交于 2020-01-06 02:16:09

问题


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.



来源:https://stackoverflow.com/questions/15959408/where-can-i-find-a-list-of-worklight-error-codes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!