@thermopylae/lib.exception
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@thermopylae/lib.exception

Version Node Version Documentation License: MIT

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

📝 License

Copyright © 2021 Rusu Marin.
This project is MIT licensed.

Package Sidebar

Install

npm i @thermopylae/lib.exception

Weekly Downloads

11

Version

1.0.1

License

MIT

Unpacked Size

4.82 kB

Total Files

6

Last publish

Collaborators

  • marinrusu1997