@aicacia/result
rust like result class
Found 150 results for err
rust like result class
Create an iterator which evaluates the relative error exponential for each iterated value.
proptype validators for results instances
Error handling and extras for `.use` and `.run` methods of your Base apps. Modifies `.use` method to be able to 1) accept array of functions, 2) options object as second argument. Emits `error` event if some plugin fails.
Makes easy to use HTTP status and errors.
Converts result-first callbacks to classic (node.js-style) error-first callbacks with 3 lines of code. Useful when you want to promisify result-first APIs (like emitter.on). Inspired by [rfpify][] and probably used in it.
A TypeScript library implementing Rust-like error handling with Result, Ok, and Err types.
generates a string containing a message and trimmed stack from error
richer JavaScript errors, but without sprintf
Create error instances with a code, status, etc.
Allows you to customize the toString method of passed `err`. Also adds useful properties like `line`, `filename` and `column` to the `err` object.
tape error events for t.fail(msg)
Not so strongly typed error
Displays http status in browser, good for error handling.
Easily create an error with custom properties attached.
Collection of error handling utilities for JavaScript and TypeScript.
Extra err.stack entries for debuggability. Better than your plain 'if (err) { return cb(err) }'
Graceful error handling. Because core `domain` module is deprecated. This share almost the same API.
common error defines as JSON format
get rid of `if (err) throw err`
module for error handling in sailsjs, firts version
Portable errors for Javascript
For those who don't like the node (er, result) convention
Clean up error stack traces
一个用于node环境的Error子类,提供更丰富的构造参数接口,更友好的code-frame提示,消息拼接等功能,详见Sample截图
errors with clean stacks
Test if a value is a URIError object.
Result type
ThrowAndTell Error Reporter Client for Node.js
This is a small lib to help create and manage log files
module for error handling in sailsjs, firts version
A lightweight set of error utilities for node.js
This module logs errors that you give it to log.
test err handler
<h1 align="center">Neverthrow-Pattern</h1>
A callback factory which splits away handling errors into a separate flow and thus requiring less boilerplate code.
Function to get JSON friendly object from error (Node/V8 only).
A callback wrapper library that reduces the number of checks needed to propagate errors up the callback chain
Revive a JSON-serialized error object.
strips Electron/Chromium logs from stderr
Return a two-character error identifier corresponding to a provided error message.
handle callback err with node style
verror that also works for browsers and react-native
a javascript library to log errors
Result in TypeScript
Return an error message corresponding to a provided two-character error identifier.
A version of Rust's result type in Typescript, which can be Ok or Err (oker)
Require module but with error handeling
提供了响应错误信息的中间件
Test if a value is an EvalError object.