{"_id":"chained-error","_rev":"1-46b8600f5c49ff68537f73d1910328fe","name":"chained-error","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"chained-error","version":"1.0.0","description":"Zero dependencies error that allows creating a chain of errors, preserving the original cause (with TypeScript support)","main":"dist/ChainedError.js","types":"dist/ChainedError.d.ts","dependencies":{},"devDependencies":{"typescript":"^3.5.3"},"scripts":{"build":"rm -Rf dist/*; tsc","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/juanluispaz/chained-error.git"},"keywords":["error","combined error","caused by","nested error"],"author":{"name":"Juan Luis Paz Rojas","url":"http://github.com/juanluispaz"},"license":"MIT","bugs":{"url":"https://github.com/juanluispaz/chained-error/issues"},"homepage":"https://github.com/juanluispaz/chained-error","gitHead":"f9ce170808475246a61fdda04a789477042af02e","_id":"chained-error@1.0.0","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-qpDTRJ+eLj5edYe93rQqB/JwLdUbOMnmtIKyEz09Z+RtSJeHGvlABuHanddNzbVcH83wBnjrUfAwFsw88wKhnA==","shasum":"b463ebc59d91af2839204bd590497106bc35fc82","tarball":"https://registry.npmjs.org/chained-error/-/chained-error-1.0.0.tgz","fileCount":7,"unpackedSize":6094,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVApKCRA9TVsSAnZWagAATX4P/3JpaO2kYqVQbpNJ2B9B\nMGK/iQVV/2/fUrIQ3ZhNKxBPeYDizVSbJYEF/hxANIfU8HIsK32ny6Ge9b9w\nUBOA02nMhtECO0leAidHtSmuakbHd5ocRfX7Bc7SgB7yEvmad/oB6iyGGnLY\n+i7OWp7y3uDCj8XiRTblLWxPB2IF1Mk6BQCnz9LnS564V1R63IdhNz4EEY/w\nEVNu2gJpdvfbm3PsmANV+DBDWzJwcnopsCG985yXwRJbsknbpyWuOnQqQtsV\nQzx30gXnlNEBvga2ihiSNX72D2MpPFnha5mkkIWrMquTFZFxPUAWS5WSzERZ\nf6/JvVvdYvs7PnLxlAzk+F/c5KrSCkwcYnz04j4Kt5eIdqh2sU+AbaIkVbjS\nMhMSrrSobdBAiBUkHzARD8aYYSWPuXb9gaNQRujaYAH6UaI57NnQVA2j9RvH\nJR/bBBpGKVTzzTTmBbzKCO3NBOTQG+YKphPV5VTF9UZHWbPyoLPYgLzBCMRQ\nJdwT5cYuifMvNsSudy3X21b0+xKv3z9FpXQEkfuANxbSXru+nl3S6nUWwI4H\nGxetvsVt5HC5ZMF00xJvUd2IaHCjvttXDC4jxdQ2yYLLSdBDvl7Sjw9zjfeT\nWdr1xqZbT9+iApIaEU5ILz5Bpl8jg3uQEAvUElvTH14IwGf16A9fH92zjreH\nyZfv\r\n=wWCL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2JI/AY5mfeM1g1Ar6oR6BrGpQGYfEPUZn7IboFZS18AiALLlzHzLjnab2TiG+PzUkhf2KVIshhtRjHwuJ2Frr59w=="}]},"maintainers":[{"name":"juanluispaz","email":"juanluispaz@gmail.com"}],"_npmUser":{"name":"juanluispaz","email":"juanluispaz@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chained-error_1.0.0_1565788746114_0.9480257423250067"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-14T13:19:06.114Z","1.0.0":"2019-08-14T13:19:06.209Z","modified":"2022-04-12T05:52:32.972Z"},"maintainers":[{"name":"juanluispaz","email":"juanluispaz@gmail.com"}],"description":"Zero dependencies error that allows creating a chain of errors, preserving the original cause (with TypeScript support)","homepage":"https://github.com/juanluispaz/chained-error","keywords":["error","combined error","caused by","nested error"],"repository":{"type":"git","url":"git+https://github.com/juanluispaz/chained-error.git"},"author":{"name":"Juan Luis Paz Rojas","url":"http://github.com/juanluispaz"},"bugs":{"url":"https://github.com/juanluispaz/chained-error/issues"},"license":"MIT","readme":"# chained-error\n\n[![npm](https://img.shields.io/npm/v/chained-error.svg)](http://npm.im/chained-error)\n[![minified size](https://badgen.net/bundlephobia/min/chained-error)](https://bundlephobia.com/result?p=chained-error)\n[![minified & gziped size](https://badgen.net/bundlephobia/minzip/chained-error)](https://bundlephobia.com/result?p=chained-error)\n\nZero dependencies error that allows creating a chain of errors, preserving the original cause (with TypeScript support)\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save chained-error\n```\n\n## Basic usage\n\n```js\nimport ChainedError from 'chained-error';\n\n// ...\ntry {\n    // ...\n} catch (error) {\n    throw new ChainedError('My message', error);\n}\n```\n\nLater, when you catch the error, and you print it, you will see something like it:\n\n```\nChainedError: My message\n    at ...\n    at ...\n    at ...\nCaused By: TheOtherErrorType: The other error message\n    at ...\n    at ...\n    at ...\n```\n\n## Type definition\n\n```ts\nexport default class ChainedError extends Error {\n    cause: any;\n    constructor(messageOrCause: any);\n    constructor(message: string, cause: any);\n}\n```\n\n## License\n\nMIT\n\n<!--\nEdited with: https://stackedit.io/app\n-->","readmeFilename":"README.md"}