Generic error

Base usage

new GenericError('failed')

Usage with details

new GenericError('api failed', {
code: 'account_suspended',
details: {
xid: 'k1k2jn31kjnasxa9'
}
})

Hierarchy

  • Error
    • GenericError

Constructors

Constructors

Generated using TypeDoc