General purpose exception.
npm install @thermopylae/lib.exception
This package contains Exception class.
import { Exception } from '@thermopylae/lib.exception';
function throwable() {
throw new Exception('EMITTER', 'ERROR_CODE', 'ERROR_MESSAGE', {
'meaningfull-data': 'error-context'
});
}
throwable();
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
👤 Rusu Marin
Copyright © 2021 Rusu Marin.
This project is MIT licensed.