- adding better exception handling for getAll operation'
- refactoring and improving the passing of exceptions to js