@appify/errors
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@appify/errors

Exports generic errors:

  • BaseError
  • DomainError
  • InfrastructureError

Instalation

npm install @appify/errors

BaseError

const { BaseError } = require('@appify/errors');

throw new BaseError('foo message')

DomainErrors

const { DomainErrors } = require('@appify/errors');

throw new DomainErrors('foo message')

InfrastructureError

const { InfrastructureError } = require('@appify/errors');

throw new InfrastructureError('foo message')

Readme

Keywords

Package Sidebar

Install

npm i @appify/errors

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

4.19 kB

Total Files

11

Last publish

Collaborators

  • rwillians