metarhia / globalstorage

Distributed Data Warehouse 🌍
https://metarhia.com
MIT License
60 stars 5 forks source link

Add action-specific error class and `Errors` field to `Action`s #408

Closed belochub closed 5 years ago

belochub commented 5 years ago

Action-specific error class will have the following properties (and constructor arguments): error name and error context. It should also implement toJSTP() method. Errors field will describe possible error names that can be returned from the action.