Socket
Socket
Sign inDemoInstall

@venncity/errors

Package Overview
Dependencies
39
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @venncity/errors

![Coverage](https://api.venn.city/production/coverage/badge?branch=master&repository=@venncity/errors)


Version published
Maintainers
1
Created

Readme

Source

Errors

Coverage

Provides data validation and common error objects.

Error types:
  • VennError
  • VennUnknownError
  • VennForbiddenError
  • VennThrottlingError
  • VennServerDataValidationError
  • VennClientDataValidationError
validator.assert(value, schema, overrides)

Used to validate an object schema against a schema (using the joi dsl - https://github.com/hapijs/joi/blob/v15.0.0/lib/language.js). The ValidationError field in the overrides param lets you select what type of error will be thrown upon a validation error.

FAQs

Last updated on 15 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc