0.1.10 • Published 3 years ago

@whi/serious-error-types v0.1.10

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

npm.io

Serious Error Types

This module brings a hierarchy of well defined error types to help make error handling a proactive measure rather than a reactive obligation.

npm.io npm.io npm.io

Overview

The ethos behind the hierarchy of types is set of failure mode strategies for creating robust and deterministic code.

The "Serious" in this module's name implies that these error types are for developers who take their code seriously; it should not imply that the errors are critical, dangerous, or severe.

Error Hierarchy

Error
 |
 |- EvalError
 |- InternalError
 |- RangeError
 |- ReferenceError
 |- SyntaxError
 |- TypeError
 |- URIError
 |
 '- SeriousError
     |
     |- InputError
     |   |- MissingArgumentError
     |   '- InvalidArgumentError
     |
     |- DatabaseError
     |   |- DatabaseQueryError
     |   '- ItemNotFoundError
     |
     |- AuthError
     |   |- AuthenticationError
     |   '- AuthorizationError
     |
     '- HTTPError
         |- HTTPRequestError
         |   '- NotFoundError
         |   '- MethodNotAllowedError
         '- HTTPResponseError
0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago