1.6.1 • Published 4 years ago

@essential-projects/errors_ts v1.6.1

Weekly downloads
742
License
MIT
Repository
github
Last release
4 years ago

Errors_ts

A technical error provider.

Usage

  1. If you build a transport layer, ...

    ... you can implement the handling of the Technical Errors provided by this package, so that when someone uses your layer, and an error ist thrown, you can handle it correctly.

  2. If you want to use essential-projects-errors, ...

    ... you can just use the Errors provided by this package directly, or write your own non-technical errors that extend these errors.

    Every library that can handle these errors will be able to also correctly handle your extensions of these errors.

  3. Either way...

    ... you just need to install it with:

    npm install --save @essential-projects/errors_ts

    And then import the errors like this:

    // JavaScript-variant
    const ERRORNAME = require('@essential-projects/errors_ts').ERRORNAME`
    
    // typescript-variant
    import {ERRORNAME1, ERRORNAME2, ERRORNAME3} from '@essential-projects/errors_ts';

    Where ERRORNAME is the name error you want to import.

    All essential-projects-errors have the isEssentialProjectsError-property, so they can be identified as such.

Test

In order to run the test:

npm test

Errors

The Errors are mostly based on http-status-codes. Every Error, except for the BaseError directly extends BaseError, and BaseError extends Error

NameCode
BaseError
Information Errors1xx
ContinueError100
SwitchingProtocolsError101
ProcessingError102
Redirect Errors3xx
MultipleChoicesError300
MovedError301
FoundError302
SeeOtherError303
NotModifiedError304
UseProxyError305
TemporaryRedirectError307
PermanentRedirectError308
Client Errors4xx
BadRequestError400
UnauthorizedError401
PaymentRequiredError402
ForbiddenError403
NotFoundError404
MethodNotAllowedError405
NotAcceptableError406
ProxyAuthenticationRequiredError407
RequestTimeoutError408
ConflictError409
GoneError410
LengthRequiredError411
PreconditionFailedError412
RequestTooLargeError413
URLTooLongError414
UnsupportedMediaTypeError415
RequestedRangeNotSatisfiableError416
ExpectationFailedError417
ImATeapotError418
PolicyNotFulfilledError420
MisdirectredRequestError421
UnprocessableEntityError422
LockedError423
FailedDependencyError424
UpgradeRequiredError426
PreconditionRequiredError428
TooManyRequestsError429
RequestHeaderTooLargeError431
UnavaliableForLegalReasonsError451
Server Errors5xx
InternalServerError500
NotImplementedError501
BadGatewayError502
ServiceUnavaliableError503
GatewayTimeoutError504
VersionNotSupportedError505
InsufficientStorageError507
LoopDetectedError508
BandwithLimitExceededError509
NetworkAuthenticationRequiredError511
@process-engine/process_engine_corebpmn-studio@everything-registry/sub-chunk-298@atlas-engine/core.process_model_parser@essential-projects/datasource_adapter_localstorage@essential-projects/http_socket_adapter_socketio@essential-projects/http_socket_adapter_websocketbpmn-studio-alpha@process-engine/process_model.service@process-engine/process_model.use_case@process-engine/solutionexplorer.repository.filesystem@process-engine/solutionexplorer.repository.management_api@process-engine/solutionexplorer.repository.processengine@process-engine/solutionexplorer.repository.processengine_datastore@process-engine/solutionexplorer.service@process-engine/token_history_api_http@process-engine/kpi_api_http@process-engine/logging_api_http@process-engine/correlation.service@process-engine/correlations.repository.sequelize@process-engine/cronjob_history.repository.sequelize@process-engine/consumer_api@process-engine/metrics.repository.file_system@process-engine/process_engine_client@process-engine/dynamic_ui_http@process-engine/external_task.repository.file_system@process-engine/external_task.repository.sequelize@process-engine/external_task_api_core@process-engine/external_task_api_http@process-engine/deployment_api_core@process-engine/deployment_api_http@infinitebrahmanuniverse/nolb-_ess@essential-projects/event_aggregator@essential-projects/http@essential-projects/http_contracts@essential-projects/http_extension@essential-projects/timing@process-engine/external_task_api_client@process-engine/consumer_api_client@process-engine/consumer_api_core@process-engine/consumer_api_http@process-engine/process_engine@process-engine/process_model.repository.sequelize@process-engine/iam@process-engine/logging.repository.file_system@process-engine/flow_node_instance.repository.sequelize@process-engine/management_api_client@process-engine/management_api_core@process-engine/management_api_http@process-engine/persistence_api.repositories.sequelize@process-engine/persistence_api.services@process-engine/persistence_api.use_cases@zalastax/nolb-_ess
1.6.1

4 years ago

1.6.0

4 years ago

1.5.3

4 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

1.0.0-rc1

6 years ago