I hereby claim:
- I am jmcabrera on github.
- I am juanma (https://keybase.io/juanma) on keybase.
- I have a public key ASALUT49LNeFZfQ-9R5SFaxY0VP6ulQsUDIQs9v0qJg5bAo
To claim this, I am signing this object:
// Somewhere else, where a proper Exception Hierarchy is created | |
class SecurityError extends Error {} | |
class SystemError extends Error {} | |
class BusinessError extends Error {} | |
// In our store, where we subclass general exceptions as appropiate to our cases | |
class LockedUserError extends SecurityError {} | |
class DataAccessError extends SystemError {} | |
async function getUser(userId) { | |
if (userId == 'locked') throw new LockedUserError(); |
I hereby claim:
To claim this, I am signing this object: