0.3.7 • Published 3 years ago

@loopx/errors v0.3.7

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

@loopx/errors

Common scoped error creator and utility functions

Errors

Each package should contain a scoped error class, created with the @loopx/errors package's createScopedError function. This function requires a mapping of error codes to error messages.

Code guidelines

Each code should follow the format of <feature>_<category>, where category is in the form of one of the following:

  • UNKNOWN, UNKNOWN_* - A value is unknown.
  • UNSUPPORTED, UNSUPPORTED_* - A value is not supported currently.
  • INVALID_* - A value is invalid.
  • REQUIRED, REQUIRED_* - A value is missing.
  • DEFINED, PROVIDED - A value already exists.
  • ONLY_* - Only this can be used.
  • NO, NON, NOT - Disallow a specific value or symbol from being used.
  • * - Other applicable actions/verbs.

Interpolation

The following interpolated values should be wrapped with double quotes:

  • User provided
  • File paths

The following values should use backticks.

  • Code provided values
  • Hard coded file names (package.json, etc)
0.3.7

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago