https://github.com/flex-development/exceptions
🚧 Custom error classes and utilities
https://github.com/flex-development/exceptions
error-handling exceptions typescript
Last synced: 4 months ago
JSON representation
🚧 Custom error classes and utilities
- Host: GitHub
- URL: https://github.com/flex-development/exceptions
- Owner: flex-development
- License: bsd-3-clause
- Created: 2021-04-23T14:03:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T10:58:08.000Z (over 1 year ago)
- Last Synced: 2025-01-09T05:45:35.463Z (6 months ago)
- Topics: error-handling, exceptions, typescript
- Language: TypeScript
- Homepage: https://github.com/flex-development/exceptions
- Size: 4.86 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/funding.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# exceptions
[](https://npmjs.com/package/@flex-development/exceptions)
[](https://codecov.io/gh/flex-development/exceptions)
[](https://github.com/voxpelli/badges-cjs-esm)
[](LICENSE.md)
[](https://conventionalcommits.org/)
[](https://typescriptlang.org/)
[](https://vitest.dev/)
[](https://yarnpkg.com/)Custom error classes and utilities.
## Contents
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
- [API](#api)
- [Types](#types)
- [Data Transfer Objects](#data-transfer-objects)
- [Enums](#enums)
- [Interfaces](#interfaces)
- [Type Definitions](#type-definitions)
- [Contribute](#contribute)## What is this?
This package exports a set of custom error classes and utilities.
## When should I use this?
**TODO**: Update documentation.
## Install
```sh
yarn add @flex-development/exceptions
```From Git:
```sh
yarn add @flex-development/exceptions@flex-development/exceptions
```
See Git - Protocols | Yarn
 for details on requesting a specific branch, commit, or tag.
## Use
**TODO**: usage documentation.
## API
**TODO**: api documentation.
## Types
This package is fully typed with [TypeScript][1].
### Data Transfer Objects
- [`ExceptionDTO`](src/dtos/exception.ts)
- [`HttpExceptionDTO`](src/dtos/exception-http.ts)### Enums
- [`ClassName`](src/enums/class-name.ts)
- [`StatusName`](src/enums/status-name.ts)
- [`Status`](src/enums/status.ts)### Interfaces
- [`ExceptionJSON`](src/interfaces/exception-json.ts)
- [`HttpExceptionJSON`](src/interfaces/exception-json-http.ts)### Type Definitions
- [`Errors`](src/types/errors.ts)
## Contribute
See [`CONTRIBUTING.md`](CONTRIBUTING.md).
[1]: https://www.typescriptlang.org