@fw7/node-errors
v0.0.10
Published
## throwErr a → void
Readme
Error
throwErr
a → void
a: { code, message }
Example:
import { throwErr, error } from '@lib/error'
const errorCode = error('UNAUTHENTICATED')
const authError = errorCode('You must be authenticated')
throwErr(authError)