@stdlib/error
v0.3.3
Published
Errors.
Downloads
2,385
Readme
Errors
Errors.
Installation
npm install @stdlib/error
Usage
var ns = require( '@stdlib/error' );
ns
Errors.
var o = ns;
// returns {...}
reviveError( key, value )
: revive a JSON-serialized error object.error2json( error )
: return a JSON representation of an error object.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/error' );
console.log( objectKeys( ns ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.