1.0.4 • Published 5 years ago

@appify/errors v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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')