Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Distopico Vegan 9e639edc8d style: reformat indent 5 years ago
..
index.js style: reformat indent 5 years ago
license style: reformat indent 5 years ago
package.json style: reformat indent 5 years ago
readme.md style: reformat indent 5 years ago

readme.md

aggregate-error Build Status

Create an error from multiple errors

Install

$ npm install --save aggregate-error

Usage

const AggregateError = require('aggregate-error');
const err = new AggregateError([new Error('foo'), 'bar']);
throw err;
/*
AggregateError:
    Error: foo
        at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:33)
    Error: bar
        at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)
    at AggregateError (/Users/sindresorhus/dev/aggregate-error/index.js:19:3)
    at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
*/
for (const el of err) {
console.log(el);
}
//=> [Error: foo]
//=> [Error: bar]

API

AggregateError(errors)

Returns an Error that is also an iterator for the individual errors.

errors

Type: Iterable<Error|string>

License

MIT © Sindre Sorhus