DEV Community

loading...

Discussion on: Understanding SOLID Principles: Dependency Inversion

Collapse
iamjochem profile image
Jochem Maas

nice write up. not directly related to the topic but I feel that not rejecting promises with anything other than actual Error instance is yucky. ... It would be nice if the whole JS world could agree on that API/Interface ... It would make error handling code alot less error prone (it difficult to know with certainty whether any given .catch() handler wont be confronted with a non Error from some deeply nested dependency)