1.0.1 ā¢ Published 3 years ago
@thermopylae/lib.exception v1.0.1
General purpose exception.
Install
npm install @thermopylae/lib.exception
Description
This package contains Exception class.
Usage
import { Exception } from '@thermopylae/lib.exception';
function throwable() {
throw new Exception('EMITTER', 'ERROR_CODE', 'ERROR_MESSAGE', {
'meaningfull-data': 'error-context'
});
}
throwable();
API Reference
API documentation is available here.
It can also be generated by issuing the following commands:
git clone git@github.com:marinrusu1997/thermopylae.git
cd thermopylae
yarn install
yarn workspace @thermopylae/lib.exception run doc
Author
š¤ Rusu Marin
- GitHub: @marinrusu1997
- Email: dimarusu2000@gmail.com
- LinkedIn: @marinrusu1997
š License
Copyright Ā© 2021 Rusu Marin. This project is MIT licensed.