Generic error
Base usage
new GenericError('failed') Copy
new GenericError('failed')
Usage with details
new GenericError('api failed', { code: 'account_suspended', details: { xid: 'k1k2jn31kjnasxa9' }}) Copy
new GenericError('api failed', { code: 'account_suspended', details: { xid: 'k1k2jn31kjnasxa9' }})
Generic error constructor
Optional
Generated using TypeDoc
Generic error
Base usage
Usage with details