electron-userland / electron-json-storage

:package: Easily write and read user settings in Electron apps
1.43k stars 79 forks source link

Error Handling #130

Closed edenhermelin closed 4 years ago

edenhermelin commented 5 years ago

Hi, We are using the API in our app, and we are working now on error handling. We would like to know if there is a list of all the errors (or at least the most common ones) that the API returns.

jviotti commented 5 years ago

Hey there! There are a plethora of errors this module can return, coming from the dependencies we use. The most common ones are I/O errors coming from the fs Node.js library. Pretty much any other error you hit is something caused by wrong usage of the library (i.e. setting an invalid data path) or something we should fix!