How to customise useful Error classes
A Javascript example
Errors are useful in letting us know whether something unexpected happened in the system. By throwing and catching errors explicitly, we can better control the flow of the system and display meaningful…