@appify/errors
v1.0.4
Published
Basic errors.
Downloads
12
Readme
@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')