1.0.3 • Published 10 months ago
jsm-exceptions v1.0.3
jsm-exceptions
File Structure
The following is a list of files in the ./src directory:
index.js: The main entry point of the library.CustomError.js: Defines a custom error class.ErrorHandler.js: Contains functions for handling errors.utils.js: Utility functions used across the library.
Usage
To use this library, install it via npm:
npm install jsm-exceptionsThen, import and use it in your project:
const { CustomError, ErrorHandler } = require('jsm-exceptions');
try {
// Your code that might throw an error
} catch (error) {
ErrorHandler.handle(error);
}Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.