0.0.5 • Published 7 months ago

error-translation-refs v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

@protegie/error-keys

A comprehensive library of standard error keys for streamlined and efficient error handling across diverse domains.

Installation

Use the following command to install this package:

npm install @protegie/error-keys

Usage

After installation, you can import only the necessary keys for your module. Here is an example:

import { INVALID_CREDENTIALS_PROVIDED } from '@protegie/error-keys/authentication';

if (!validCredentials) {
  throw new Error(INVALID_CREDENTIALS_PROVIDED);
}

Key Categories

This package provides error keys categorized into separate modules, each corresponding to a specific domain such as:

  • authentication: Contains keys related to authentication errors.
  • server: Contains keys related to server interaction errors.
  • profile: Contains keys related to user profile management errors.
  • sms: Contains keys related to SMS handling errors.
  • And many more categories covering various domains.

License

This project is licensed under the ISC license.

Contributing

We welcome contributions! Just open a PR and request review.

Contact

For questions or feedback, please reach out to the author, @easyadin | tobiayokunnu@gmail.com.

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago