@deeptrace/commons
v1.0.32-alpha.0
Published
Objects shared accross projects
Downloads
13
Readme
@deeptrace/commons
A package with objects shared accross projects.
You can learn more about the "why"s behind this package and DeepTrace's ecosystem here.
How to install
This is a Node.js module available through the npm registry.
Installation is done using the npm install command:
npm install @deeptrace/commons
Exported objects
- CommonError
- DomainError
- InfrastructureError
- HttpError
- UserFaultHttpError
- BadRequestHttpError
- UnauthorizedHttpError
- PaymentRequiredHttpError
- ForbiddenHttpError
- NotFoundHttpError
- ConflictHttpError
- GoneHttpError
- UnprocessableEntityHttpError
- LockedHttpError
- TooManyRequestsHttpError
- ServerFaultHttpError
- InternalServerErrorHttpError
- ServiceUnavailableHttpError
- environments
- TEST
- REVIEW
- STAGING
- PRODUCTION
- DEVELOPMENT
Errors inheritance tree
- CommonError
- DomainError
- InfrastructureError
- HttpError
- UserFaultHttpError 4xx
- BadRequestHttpError 400
- UnauthorizedHttpError 401
- PaymentRequiredHttpError 402
- ForbiddenHttpError 403
- NotFoundHttpError 404
- ConflictHttpError 409
- GoneHttpError 410
- UnprocessableEntityHttpError 422
- LockedHttpError 423
- TooManyRequestsHttpError 429
- ServerFaultHttpError 5xx
- InternalServerErrorHttpError 500
- ServiceUnavailableHttpError 503
- UserFaultHttpError 4xx
- HttpError