Socket
Socket
Sign inDemoInstall

@blackglory/errors

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blackglory/errors

Common errors


Version published
Weekly downloads
591
decreased by-27.04%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.0 (2021-02-03)

Features

  • add ExpectedError (fdf18a3)

Readme

Source

errors

Common errors.

Install

npm install --save @blackglory/errors
# or
yarn add @blackglory/errors

API

Interfaces

type CustomErrorConstructor<T extends CustomError = CustomError> = new (message?: string) => T

interface SerializableError {
  name: string
  message: string
  stack: string | null
}

CustomError

class CustomError extends Error {}

ExpectedError

class ExpectedError extends CustomError {}

normalize

function normalize(err: Error): SerializableError

FAQs

Last updated on 03 Feb 2021

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc