Example
Example copied to clipboard
Error handling proposal
I don't know if this is the correct way of passing the error class between files in API, but this is how in theory error should be used.
The idea is to have one error.js file in each unit, where you can describe expected errors for the whole unit.