
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@arrows/error
Advanced tools
The library contains a set of helper functions for error handling.
The library has built-in type definitions, which provide an excellent IDE support.
Via NPM:
npm i @arrows/error
Via Yarn:
yarn add @arrows/error
Creates custom error class that returns extended error object that can be serialized to JSON.
name - The error name (should be the same as the name of the variable to which the class is assigned)message - Error messageserializeStacktrace An optional boolean flag, to indicate weather a stacktrace should be serialized (default: false)(name , message, serializeStacktrace?) => custom_error_class
Create a custom error class:
const MyError = createErrorClass('MyError', 'some message')
Create a custom error class with serializable stacktrace:
const MyError = createErrorClass('MyError', 'some message', true)
Project is under open, non-restrictive ISC license.
FAQs
Error helpers library
The npm package @arrows/error receives a total of 14,004 weekly downloads. As such, @arrows/error popularity was classified as popular.
We found that @arrows/error demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.