{"_id":"therror","_rev":"25-09cfc1ec04b1269ad5c0ff0794458e11","name":"therror","description":"Create, document, customize and throw node errors easily","dist-tags":{"latest":"4.1.1"},"versions":{"0.2.0-beta.0":{"name":"therror","description":"Create, document, and throw node errors easily","version":"0.2.0-beta.0","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=0.8.0"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js test/*.spec.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js test/*.spec.js","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js test/*.spec.js","prepublish":"npm run test && npm run lint"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^0.23.0","istanbul":"^0.3.15","jscs":"^1.13.1","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","i18n","node"],"license":"Apache-2.0","gitHead":"ece8c3caac62a1fe825a65ed70d113dd539426c1","_id":"therror@0.2.0-beta.0","_shasum":"8986b054ead22d4719d14210bf2f535896ad798f","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.10.31","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"}],"dist":{"shasum":"8986b054ead22d4719d14210bf2f535896ad798f","tarball":"https://registry.npmjs.org/therror/-/therror-0.2.0-beta.0.tgz","integrity":"sha512-Nyh7lF3pzCD4wbbga9K7H9Pg28dN/v5vFHCfFQ91bzg62FT0oknyL9Ueki+Y9JstPKwqPUJPRx3KM0q1E5dPtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZwbTtngj5HPBqm6vtFLYgEuZjs2IJtQ794p/+X4fzyQIhAKwJDP7pwmJ9bDxs+FSrMEIlCO48I3DRs4B1PRdw4DP0"}]},"directories":{}},"0.2.0":{"name":"therror","description":"Create, document, and throw node errors easily","version":"0.2.0","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=0.8.0"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js test/*.spec.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js test/*.spec.js","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js test/*.spec.js","prepublish":"npm run test && npm run lint"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^0.23.0","istanbul":"^0.3.15","jscs":"^1.13.1","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","i18n","node"],"license":"Apache-2.0","gitHead":"b9b6c9b6b57680cc7bd2d1ffd095434cb8f4999c","_id":"therror@0.2.0","_shasum":"8342ff239e4e843c287a5f53956fb0dc7b605fee","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.10.31","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"dist":{"shasum":"8342ff239e4e843c287a5f53956fb0dc7b605fee","tarball":"https://registry.npmjs.org/therror/-/therror-0.2.0.tgz","integrity":"sha512-X9xIkyYGQ5hIbGlkJWzvGC+gqrWeMby1TpJ0GYxGOQysFBKaqIP0IueDNhB5OWF07sUK9Pf8FA3vaSayYjjgqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJMd7XDgwP2JOyS6f2VLpWHDObFWZ1X9xR+8GiadOGQAiEAgh1LDSQ6vPqFKN3CM9NYfMqIaVsGuydEUspuClqhGqQ="}]},"directories":{}},"1.0.0-alpha.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0-alpha.1","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.0.0","serr":"^0.2.0"},"gitHead":"74232a1658b6b01d4bf075dee3f05c2d2eddcb6f","_id":"therror@1.0.0-alpha.1","_shasum":"b126bd03e872983c7feb057f14035d0785caa607","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"b126bd03e872983c7feb057f14035d0785caa607","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0-alpha.1.tgz","integrity":"sha512-K638iVCA+6vKHhvAHttFkq5SIj3s0o8cgBY/5NF5awnF1/0gGu6QD94NJmmzl7YpAK5IorVz9WyWXGpwyyfDUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFn8BtMOk+9sdEZYHOBc+pRXuJfbBpNM8xK+j/My50q7AiAJR+jJt++TXhD1dVZF6uwAR5NFQcZQYFxzTXxZauvR8Q=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-1.0.0-alpha.1.tgz_1465301413216_0.6298748354893178"},"directories":{}},"1.0.0-alpha.2":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0-alpha.2","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.0.0","serr":"^0.2.0"},"gitHead":"d95094c5cc58dd26ebefe74e480ab6b406b305fb","_id":"therror@1.0.0-alpha.2","_shasum":"0c387c3e09d87279f8c56a92d121a95818708292","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"0c387c3e09d87279f8c56a92d121a95818708292","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0-alpha.2.tgz","integrity":"sha512-y0u6vJ5LHoxr46yElklSxVzlPrnIqcDRwQEReD4w9ZdzHAniDiKcsKsh6DnLRNrxJUoNrlyyACt8C3XUT2uUnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCba8YkggkbGwcHOa4wgqBEp7Qgzn0IAL2fr4rbSyOhbAIhAPpxT3nlk6DmoOSx7Gb9Mr50h9+EyY5WokoNt9BnmYnP"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-1.0.0-alpha.2.tgz_1465312932539_0.8485399456694722"},"directories":{}},"1.0.0-alpha.3":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0-alpha.3","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.0.0","serr":"^0.2.0"},"gitHead":"2791dcca9b7ef5fbc9a916b21de645ebec275266","_id":"therror@1.0.0-alpha.3","_shasum":"912b0ec85c77ca02eb1d2d6f292e881d90314ebd","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"912b0ec85c77ca02eb1d2d6f292e881d90314ebd","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0-alpha.3.tgz","integrity":"sha512-B5pnBOVKSYwG8iymB46dEqIJ4DeZ++U07lvclv5fU2vKd1bCGSzTFzBHBbX0z8bdNisbIZdUcflFqNwd9dGNHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdNygPLaj638XoxK8ZXnv2xjVh45EjUIgvzmOMBvTTwAiBqlKojsNTV/0qKYkce9R2+pqhucLvXrr7bYdVhN9iDdQ=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-1.0.0-alpha.3.tgz_1465380917180_0.8651825482957065"},"directories":{}},"1.0.0-alpha.4":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0-alpha.4","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.0.0","serr":"^0.3.0"},"gitHead":"aaa8317df1b400cb77aa8dafc036f9219034ece7","_id":"therror@1.0.0-alpha.4","_shasum":"10b4bc9f560aaf97961df3e9c834685bf84ed9be","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"10b4bc9f560aaf97961df3e9c834685bf84ed9be","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0-alpha.4.tgz","integrity":"sha512-FPW+E/LrBFktES/yzGDUH59IfiyC+GofPPDyHMAvYx5aomZVjfI2JOnrWGHkNuS63krWMFJW1as/Dt97OZiR5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwN8pTJ4gHF0c8Ve34w8UQ8N/+Puxd4M5+KpSGbyoziwIhAJn/oMuk6LevTsTyT7iCSEyWf+qa5U62A9Bn7Pky3LIH"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/therror-1.0.0-alpha.4.tgz_1467980389612_0.45708529627881944"},"directories":{}},"1.0.0-beta.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0-beta.1","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.0.0","serr":"^0.3.0"},"gitHead":"75722afb5372490f3a4c7e21310c6260ef6d61b1","_id":"therror@1.0.0-beta.1","_shasum":"1029dbc180c96211724bfe410f171c6d6bfa1031","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"1029dbc180c96211724bfe410f171c6d6bfa1031","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0-beta.1.tgz","integrity":"sha512-RYFaMEk4UdnfKIKwKHYp4Etp9ezzklEcnhlyKtn3CjGxbnM5+Kge4doyXZ9HvnYDg46TCIJVh24Ogo07qfrozg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJQuq6RzTNUgm+q+R0SjGR9XhE9r6efn8fqs91vLfmeQIhAOAmD+a7ulG+USXKVjIQD/kr1EflCN8p3IVhYzvbU+Fl"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-1.0.0-beta.1.tgz_1468076900151_0.5355810800101608"},"directories":{}},"1.0.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"1.0.0","homepage":"https://github.com/therror/therror#readme","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib","test":"mocha -R spec test/environment.js 'test/**/*.spec.js'"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"b0abfb36d6c9ea113b08e0e266bb106da78ee898","_id":"therror@1.0.0","_shasum":"a7b1b4f58ccee8f5accdf3946595925ad4ef7d91","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"a7b1b4f58ccee8f5accdf3946595925ad4ef7d91","tarball":"https://registry.npmjs.org/therror/-/therror-1.0.0.tgz","integrity":"sha512-MO/DDYoQHiGWUmrm/UyvJHshImgIQdvPWZ6eYn7m5mfC4P1kTxFdY8Fz2DA8rnv1zf3ujYUTGR5Eqk1txFs0rA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHuTAWGytg6JqTwmlGKB47T6heeBmO72/bLDcnYcuEQLAiBfvauHSTutpSePKNdYLe07OhFXzb9cRQ24hIPYbkvsCw=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-1.0.0.tgz_1468568844563_0.10420632967725396"},"directories":{}},"2.0.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"2.0.0","homepage":"http://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && tsc --noEmit","typings":"typings"},"devDependencies":{"chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0","tslint":"^3.15.1","tslint-config-typings":"^0.2.3","typescript":"^1.8.10","typings":"^1.3.3"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"2a1f5c38bcdf0ab6f705472d670e9f152b9a5426","_id":"therror@2.0.0","_shasum":"4f40ac3bf01ae0ab1e933a44af0a61143d51a2ca","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"4f40ac3bf01ae0ab1e933a44af0a61143d51a2ca","tarball":"https://registry.npmjs.org/therror/-/therror-2.0.0.tgz","integrity":"sha512-5/OIUBsKUbBL/qWSWH+y302Xe9MJoY5sEDmb3/inMwFRwy6fTn+dEKqZzl03wnwk807R+qM/FXh83sILoa7h4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtvR2wJjgPXZ90zTVojmAEw8too2JwSFdUmnN3WCwVZwIhANsTwccbE9f2TmSJjf4YOGQBwPXTQt4UCG0tzjWWTtDk"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/therror-2.0.0.tgz_1474303641000_0.8652589824050665"},"directories":{}},"2.1.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"2.1.0","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && tsc --noEmit"},"devDependencies":{"@types/node":"^6.0.40","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0","tslint":"^3.15.1","tslint-config-typings":"^0.2.3","typescript":"^2.0.3"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"c51c9d5cab6f3808734f2bab1217a18c423a4477","_id":"therror@2.1.0","_shasum":"e6df71bcbadf6af5cdb77830d57e2c16d6758422","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"e6df71bcbadf6af5cdb77830d57e2c16d6758422","tarball":"https://registry.npmjs.org/therror/-/therror-2.1.0.tgz","integrity":"sha512-sFCmfSKH7RHMi+eaAu8Ndxy4+Dz3QRLE7wnG+O6XeOWPulROReTssUTLZU+ptnB9A8qmrRoq3o+xFsgHWKgsjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH2g07fV4sOXTaYk0LjCUesrf33cntsVrpTgnv3TRBdUCIQDE9RZcsRCDgeD92jO75CzYYppIzz5xKUOQbwOUHYq7/Q=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-2.1.0.tgz_1474640873418_0.7436666570138186"},"directories":{}},"2.1.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"2.1.1","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && tsc --noEmit"},"devDependencies":{"@types/node":"^6.0.40","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^2.10.1","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^1.15.0","sinon-chai":"^2.8.0","tslint":"^3.15.1","tslint-config-typings":"^0.2.3","typescript":"^2.0.3"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"941f29230fd38ad1684b9adf8dd9c45dd41b6b29","_id":"therror@2.1.1","_shasum":"6bfc1638fb0e7a6e280733db86d96100b2c10668","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"6bfc1638fb0e7a6e280733db86d96100b2c10668","tarball":"https://registry.npmjs.org/therror/-/therror-2.1.1.tgz","integrity":"sha512-bwvsxLegPcbaaTK1/vBXuNgj0C0NEWADwtk84itTfBnReyaXSEpV33e+z9w02lAlcgmyj2367ME1iXaWcZSB1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwoxcnz0kGD5Ypz4BYUruk3WiTi//I6FfqltwUlOBjvAiEA5arxaSF1QQNHcXwfWqRSqcKJOPrDQU8EHWNqrlLGJc0="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-2.1.1.tgz_1474924679605_0.6685076677240431"},"directories":{}},"3.0.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"3.0.0","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"5853cd6f436519944df6634927e1b83bbcfb2a8a","_id":"therror@3.0.0","_shasum":"5e7e9c9324419a352480ceefc12891ba1616a85f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"5e7e9c9324419a352480ceefc12891ba1616a85f","tarball":"https://registry.npmjs.org/therror/-/therror-3.0.0.tgz","integrity":"sha512-mLsxeeb3IWwV3vrzV/7pdhPkSguMD1ey5J4iQjD3RL7HysZeJes6cQn82Df4OZK4t8+1qNwVO5FyTR2OKpkCUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBcX2iQhO7YvmxPsN0wrkZxZgDCkxOGvSsuahXjPh5OAiA46nXzjVaLvClGr86A16U7423ngw/p+J3sQ/SOpYWmWw=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/therror-3.0.0.tgz_1493045703319_0.790290018543601"},"directories":{}},"3.0.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"3.0.1","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"ad20e620209d7f3068e041994925b909056f092a","_id":"therror@3.0.1","_shasum":"5d99db0b2120ac227064feafa3c4a89cf811e6b0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"5d99db0b2120ac227064feafa3c4a89cf811e6b0","tarball":"https://registry.npmjs.org/therror/-/therror-3.0.1.tgz","integrity":"sha512-nq8dM1dIXIyO7vBuUMjBByalf43EB3Hfp8BA+kP2gyB7nPeNgpdaHqDBxbtbjxHpUsWLZfpFaErhoA0xANwhDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAK43j0VcsI0bmIVtTD0YVTz9M/hbVzZjK2L6Tl2pxGXAiBX0Ngeej6FCRRYnp0/+3oVzY1X++Cuh60bwqa4pe80vQ=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-3.0.1.tgz_1493106921538_0.885688804090023"},"directories":{}},"3.1.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"3.1.0","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"cfdae99dc512e343aa1c54f6b45e01ddf93d4ea7","_id":"therror@3.1.0","_shasum":"0122c88f4492f9c8147d5990182180da04d02f10","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"0122c88f4492f9c8147d5990182180da04d02f10","tarball":"https://registry.npmjs.org/therror/-/therror-3.1.0.tgz","integrity":"sha512-sHl6x/u+cGUHvyzepYysBQR9vPkfQxrGEeObHVW1diZB0BaL9rC576/mx/Z4wQLXfUCavY0ezccVwmYDtmcAYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6E6W1p+VP1XM6PUyfqdCJNCg7YFO5bBOWUZYNrDFDUAIhALqIBvekoN9xyiqwRBV5g2v2J2rzg9k7+q1POToPa8Bw"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/therror-3.1.0.tgz_1493123523073_0.6844637226313353"},"directories":{}},"4.0.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.0.0","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"2824e9c6d06728758a7b3de6e95000ff90192876","_id":"therror@4.0.0","_shasum":"6be63d773b9b6f272b9c38c89f4467e04467763c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"6be63d773b9b6f272b9c38c89f4467e04467763c","tarball":"https://registry.npmjs.org/therror/-/therror-4.0.0.tgz","integrity":"sha512-l2WmZX2kHMbLmx4LjqlTHH8mAzImAUaXqoN5Bm7Eg2UUc6HVD4erLtXXOgC74u+m0FezzTUEpBXwQNXOi7b5bQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0gpsgdIp5x5s/ZtitFDL6dPPlqVSHFjnQgQGrmC40aAiBuGIdnLL6MVDmfCYs3YMlzaF9inTRLhE36xEkGB/DWqw=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/therror-4.0.0.tgz_1495182493345_0.09338956675492227"},"directories":{}},"4.0.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.0.1","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"d64fa16f7e5f430971a785d9bcc7c55eaf368c68","_id":"therror@4.0.1","_shasum":"dcc6129928d2a5301f67e612138c86c08f79b28c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"dcc6129928d2a5301f67e612138c86c08f79b28c","tarball":"https://registry.npmjs.org/therror/-/therror-4.0.1.tgz","integrity":"sha512-FLklwgf9MhDcDTTngYpKd7S4kx6bt8byln/vjUPSV8xJMWo3lGXq1Z62BGGqwCpmedEfUbgY50POGDenkY/7ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG59LF9/Rl9gBhct+58Zq19R8DphpyzlbO+UQGvU9m6UAiEA8xMbgy4R8wqi4Frr4n7AGj+qOou+03sh6fuWS/FXyJk="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/therror-4.0.1.tgz_1495190307218_0.18032488250173628"},"directories":{}},"4.0.2":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.0.2","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4 <8"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"5d4f73352e151d8d9a73b2b705cf4ee2fddaac85","_id":"therror@4.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"integrity":"sha512-PP9mWrkq0OFLGqBWf8wbywCeG7L9wNL3D9pTs8T55A/8Qm52fwv/+SDJZD31qDWkRFZ5ZrzXKia+y+BzBrmQ3A==","shasum":"56a53e3b7cd2bb1d8ca4793dac524ee201368cc8","tarball":"https://registry.npmjs.org/therror/-/therror-4.0.2.tgz","fileCount":9,"unpackedSize":147085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHveFHG4Swm7irNiJzjF6bDcd9hm6Xu+riUaX396yhlAiB/71+FzEdxYeNM/57uwQ9L8/B4AtOfT/szY2+6Op+/7Q=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/therror_4.0.2_1519664907127_0.8774095838467182"},"_hasShrinkwrap":false},"4.0.3":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.0.3","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"travis":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec test/environment.js 'test/**/*.spec.js' && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage && tsc --noEmit","coverage":"istanbul cover ./node_modules/mocha/bin/_mocha -- -R dot test/environment.js 'test/**/*.spec.js'","lint":"jscs lib && eslint lib && tslint './{lib,test}/**/*.ts'","test":"mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"devDependencies":{"@types/node":"^7.0.13","chai":"^3.0.0","coveralls":"^2.11.2","eslint":"^3.2.0","istanbul":"^0.4.2","jscs":"^3.0.3","mocha":"^2.2.5","sinon":"^2.1.0","sinon-chai":"^2.8.0","tslint":"^5.1.0","tslint-config-typings":"^0.3.1","typescript":"^2.3.0"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.1.0","serr":"^1.0.0"},"gitHead":"825455a1df7ef97db67d3ce64e57c0ff869823c8","_id":"therror@4.0.3","_shasum":"b3543ba316d1f6c9870171b07733b7a57711acb5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.3","_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"dist":{"shasum":"b3543ba316d1f6c9870171b07733b7a57711acb5","tarball":"https://registry.npmjs.org/therror/-/therror-4.0.3.tgz","fileCount":10,"unpackedSize":195192,"integrity":"sha512-+VYWgmpBnp6dXAiw5hTN6sy9eIdCBx6FiHKKuxoVShOwv8KkLBUMxqy7TmR4Phw65Sy3mhovmigxHXJfJayuTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFAKV6zxKiSIVDElk6K7ITZN2lpz9OUuV4u6EE256Q3oAiEAnRZ7U5kXIMsCmlwJqW7tzrQQ6Vm4cJkOwdcO/s4H8xo="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/therror_4.0.3_1519667389885_0.4018880853164093"},"_hasShrinkwrap":false},"4.1.0":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.1.0","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"coverage":"nyc report --reporter=text-lcov | coveralls","lint":"eslint lib && tslint './{lib,test}/**/*.ts'","format":"prettier --write '{src,test,.}/**/*.{js,md}'","test":"nyc mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"prettier":{"semi":true,"singleQuote":true},"devDependencies":{"@types/node":"12.0.12","chai":"4.2.0","coveralls":"3.0.4","eslint":"6.0.1","nyc":"14.1.1","mocha":"6.1.4","prettier":"1.18.2","sinon":"7.3.2","sinon-chai":"3.3.0","tslint":"5.18.0","tslint-config-typings":"0.3.1","typescript":"3.5.2"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"4.17.11","serr":"1.0.1"},"gitHead":"94cc83a2054982ef5dae09fc601d397ea088ab4c","_id":"therror@4.1.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-om1N6/U3bCf5SJK4XNaAgE5auI+rLSIsH7ACccNKo7vUDy/myEGRvufV8tfgGWsjYisKF89WdwwgphW07mvblg==","shasum":"025463441e3af5209d740a3278a4c0d8f590429b","tarball":"https://registry.npmjs.org/therror/-/therror-4.1.0.tgz","fileCount":13,"unpackedSize":97524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdH1uzCRA9TVsSAnZWagAAnqoP/1dWrAOwXH4zXz3Mm6xS\ndx0vJkeEgYTHt0Q0qbk930MK4stE5O6sywbXDgCwki2RiYKOyWjNwh85B1J0\nCp3TE99HOWSHJwy0uNl4zIZsIr1omoEDwJT4iyuZyJy0TBh5/ulQ/J3p0xuK\nSAYT/GKfWbcFv17q38VhICHM5NOY7SQXOmz6WLThXC0R6mI+Ol/PGo7YknOO\nwbcZ82Q7dkTC/Sx6ECrMQf3dCGL5z5e+jiuHUX1pJyHOTVtz/nBqvIxkabLZ\ngX9UPQRoS8zD9jofFX63FDu5ohoyz3CrCZcaE09HJUtafRn4uQ+lsWzNafYD\nvz2A+Gkep0wUYtoGZ3kXIp+mvS/KhPWCmbpqBOofXBwliRijR+Zec3Zvonoz\nb4mICsM9Y/uNbh/Tv3iaYEUCgCxlsFLq4lSkp1BpzZxCyClslOXSHj7ptBDO\nfIAHbCtKohcfu67jnP5eZE+TCTLLaacJFBEiaUCNtook3NEY6FPjbdKfztZw\n7i4dEqb0J11aJHYz2IU18gWLeYdwPDSg841Mb++vl8sPn2E8IjiaM98IQ/J6\nCsGuEwFcl96zLre/iodcMeYDO1LCxMOSX9CWH0XZxXxTmmb1wx/6MOYNKDu8\nQYh3Xeh+88/weRF4PDhCRVIPkLD16LJDBMWP6JI77JGcx5vQendcKnMnCV9L\nr/zE\r\n=S71Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoOjBXj9p/xyg83SqVYbgyiubEfTyWrWPmKXX4AVv+vAiAEO5NFeVD4XoSuERPxz4YiNK/c/v5UrJeTs2EGK8VRHQ=="}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/therror_4.1.0_1562336178976_0.16569498397621873"},"_hasShrinkwrap":false},"4.1.1":{"name":"therror","description":"Create, document, customize and throw node errors easily","version":"4.1.1","homepage":"https://therror.github.io/therror","author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"bugs":{"url":"https://github.com/therror/therror/issues"},"main":"lib/therror","typings":"./lib/therror.d.ts","engines":{"node":">=4"},"scripts":{"coverage":"nyc report --reporter=text-lcov | coveralls","lint":"eslint lib && tslint './{lib,test}/**/*.ts'","format":"prettier --write '{src,test,.}/**/*.{js,md}'","test":"nyc mocha -R spec test/environment.js 'test/**/*.spec.js' && npm run test:ts","test:ts":"tsc --noEmit"},"prettier":{"semi":true,"singleQuote":true},"devDependencies":{"@types/node":"^12.0.12","chai":"^4.2.0","coveralls":"^3.0.6","eslint":"^6.1.0","nyc":"^14.1.1","mocha":"^6.2.0","prettier":"^1.18.2","sinon":"^7.3.2","sinon-chai":"^3.3.0","tslint":"^5.18.0","tslint-config-typings":"^0.3.1","typescript":"^3.5.2"},"keywords":["error","properties","customizable","extensible","i18n"],"license":"Apache-2.0","tonicExampleFilename":"examples/tonicdev.js","dependencies":{"lodash":"^4.17.15","serr":"^1.0.1"},"gitHead":"4df00be78e182cd7383c95057b3eebaba724451e","_id":"therror@4.1.1","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-teE2rxX6iSf1jjDYZL7/Xx4wX3QZWjVe1wGAsK68Bt5GiJWiZdzmccYoHlLjR+u2zMBH61iN2AP2ga3f/o6ajw==","shasum":"90d11625ef370d09ee59a00d9935276b6af83a19","tarball":"https://registry.npmjs.org/therror/-/therror-4.1.1.tgz","fileCount":8,"unpackedSize":73175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTAzhCRA9TVsSAnZWagAAYzcP/3wtei8JFF1TlKh7G5sb\nOTxvHHr8VjROt+YBM5uUSNESDYkG3s+c0aVlb0ntOwroFL0k7TtNkxJwKqsL\nTTMVkb0SFr2NEJlW5t1IQANXSz07SKZdHpYCq/07e1JmO93dfuK6KGXTHcU1\njwuTpuzfO6PTXYhur6NXuBHl7h0Y21m5fkOmpDHJw2hjKxHiWq+DavetdyjI\nvPrLPKaPa28zeG5ceKfk2gHbDyBSzBO8n0qPicvPpcNG7NK+TwULAQa5eSXB\npfq4az4vU8q0X3k8Pmtb//CXLMzsZcDdKXOMLUW19SX5R9hsB6hPYXs1eGAn\n4fUuOlDmiMFOe2nAifwYUp53f9DmsV1FF+LJxtj39CfquFOwDNUq5EpewSIY\nuLbhQJ2P4GxS+Cd+AsZptOJa+rrAIsZLofWLkGAs+CCcUE/cg6rNVSltBKk1\nGCvhzAasctV3yLuwRxN6oTiTf89uBwQQE6SJhZPAD92F3fpEE1OPqM8Cz5rE\n0JOG14lndEyrNydFp1lxMfkewP6i73ouX70kAvlu5yCjEvKMvnfGPQKQXTfi\n0o0XffOJlw7b72tgfS56ljvm4D+488iMDcgAKIFJJ1UbI8SDp3pZ18O6QRLm\nKIvjgFg5qIUWuvD0r1vXcjrppdiByK/PmdC3MsWGj+t5QQnkcfn8kWbhvioX\nk+vP\r\n=V+6e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDlYLzgAubczMPK1wWgoc7XtR/UdCk+eK0yJa9dWTS1wIhAPrqE3Bg7RBA2sacr5jsFZAsVIzYZr+MTnc7P9RZSUx3"}]},"maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"_npmUser":{"name":"jmendiara","email":"jmendiara@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/therror_4.1.1_1565265120989_0.8442827725869932"},"_hasShrinkwrap":false}},"readme":"# therror\n\ntherror is a library created for making node error management easy, customizable, interoperable and documentable.\n\nIt's written in ES6, for node >= 4\n\n[![npm version](https://badge.fury.io/js/therror.svg)](http://badge.fury.io/js/therror)\n[![Build Status](https://travis-ci.org/therror/therror.svg)](https://travis-ci.org/therror/therror)\n[![Coverage Status](https://coveralls.io/repos/therror/therror/badge.svg?branch=master)](https://coveralls.io/r/therror/therror?branch=master)\n![Typescript definitions](https://img.shields.io/badge/TypeScript%20Definition-.d.ts-blue.svg)\n\nTherror errors are [javascript errors](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error)\nwith sugar. You can use this library to create your application or library errors, and maintain fully interoperability with\nothers code.\n\nThe _sugar_ is:\n\n- **variables**: Add runtime information to your error messages\n- **extensibility**: Pure javascript Error classes with easy [ES6 mixins](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Mix-ins) support\n- **nesting**: Add the parent cause to your library errors\n- **notifications**: Subscribe to events when an error is created: Log them in a single place.\n- **internationalization**: Easy to hook your own i18n library to translate error messages\n- **predefined http errors**: Standard HTTP Error classes for quick programming\n\nWith the help of their [peer projects](#peer-projects), you will have the opportunity to create a set of documents in various formats to\nsatisfy the needs of several teams (operations, delivery, final users, developers, ...) but only maintaining one documentation in\nthe best place ever: _your source code_.\n\n[Try therror online](https://tonicdev.com/npm/therror)\n\n## Installation\n\n```bash\n npm install --save therror\n```\n\n## Usage\n\n```js\nconst Therror = require('therror');\n\n// Extend Therror to create your own classes\nclass InvalidParamError extends Therror {}\n\ntry {\n  // ES6 Template String syntax to have great i18n support.\n  throw new InvalidParamError('${value} is not valid value for ${id}', {value: 12, id: 'offset'});\n  // `value` and `id` are now properties of the thrown error.\n  // { [InvalidParamError: 12 is not valid value for offset] value: 12, id: 'offset' }\n} catch (err) {\n  // Add cause to your errors. You can also use Therror directly\n   throw new Therror(err, `Invalid param \"${err.id}\"`));\n   // [Error: Invalid param \"offset\"]\n}\n```\n\n### Create your own errors\n\n```js\nconst Therror = require('therror');\n\nclass InvalidParamError extends Therror {\n  constructor(props) {\n    super(props);\n    // Define the message in the class to not specify it in their instances\n    this.message = '${value} is not valid value for ${id}';\n    this.statusCode = 400;\n  }\n}\n\nlet err = new InvalidParamError({ value: 12, id: 'offset' });\nconsole.log(err);\n// { [InvalidParamError: 12 is not valid value for offset] value: 12, id: 'offset', statusCode: 400 }\n```\n\n### Adding error causes\n\n```js\nconst Therror = require('therror');\n\ntry {\n  throw new Error('3rd Party error');\n} catch (err) {\n  let catchedError = new Therror(err, 'There was a problem with 3rd Party');\n  console.log(catchedError.cause());\n  // [Error: 3rd Party error]\n}\n```\n\nYou can also use [logops](https://github.com/telefonicaid/logops), an error friendly logger that incorporates support off the shell for printing error causes.\n\n### Server Error classes\n\nCommon use case for your Server Errors.\n\nIncludes `Therror.Notificator`, `Therror.Loggable`, `Therror.WithMessage` and `Therror.HTTP` mixins. If you are using express, [therror-connect](https://github.com/therror/therror-connect) error handler might be useful\n\n```js\nlet err = new Therror.ServerError.NotFound('The user ${user} does not exists', {\n  user: 'Sarah'\n});\n// or err = new Therror.ServerError[404]('The user ${user} does not exists', {user: 'Sarah'})\n\nres.statusCode(err.statusCode); // 404\nres.json(err.toPayload());\n// {\n//    error: 'NotFound',\n//    message: 'The user Sarah does not exists'\n// }\n```\n\n`toPayload()` method is meant to get the final response to the client.\nWhen the error `statusCode >= 500`, it will set in the payload response\na generic response to hide the implementation details to the user, while\nhaving the original properties untouched to log the error as it was defined\n\n```js\nlet err = new Therror.ServerError.ServiceUnavailable('BD Misconfigured');\n\n// Log the real error data\n// errors with statusCode < 500 will be logged as info. >= 500 will be logged as 'error'\nconsole.log(err); // [ServiceUnavailable: BD Misconfigured]\n\n// but send a hidden response to the client (Express example)\nres.statusCode(err.statusCode); // 503\nres.json(err.toPayload());\n// {\n//    error: 'ServiceUnavailable',\n//    message: 'Service Unavailable'\n// }\n```\n\nCreate your own\n\n```js\nclass UserNotFound extends Therror.ServerError({\n  message: 'User ${username} does not exists',\n  level: 'info',\n  statusCode: 404\n}) {}\n\nlet error = new UserNotFound({ username: 'John Doe' });\n```\n\nThe following classes have been defined in `Therror.ServerError`\n\n```js\n{\n     '400': 'BadRequest',\n     '401': 'Unauthorized',\n     '402': 'PaymentRequired',\n     '403': 'Forbidden',\n     '404': 'NotFound',\n     '405': 'MethodNotAllowed',\n     '406': 'NotAcceptable',\n     '407': 'ProxyAuthentication Required',\n     '408': 'RequestTimeout',\n     '409': 'Conflict',\n     '410': 'Gone',\n     '411': 'LengthRequired',\n     '412': 'PreconditionFailed',\n     '413': 'RequestEntityTooLarge',\n     '414': 'RequestUriTooLarge',\n     '415': 'UnsupportedMediaType',\n     '416': 'RequestedRangeNotSatisfiable',\n     '417': 'ExpectationFailed',\n     '418': 'ImATeapot',\n     '422': 'UnprocessableEntity',\n     '423': 'Locked',\n     '424': 'FailedDependency',\n     '425': 'UnorderedCollection',\n     '426': 'UpgradeRequired',\n     '428': 'PreconditionRequired',\n     '429': 'TooManyRequests',\n     '431': 'RequestHeaderFieldsTooLarge',\n     '451': 'UnavailableForLegalReasons',\n     '500': 'InternalServerError',\n     '501': 'NotImplemented',\n     '502': 'BadGateway',\n     '503': 'ServiceUnavailable',\n     '504': 'GatewayTimeout',\n     '505': 'HTTPVersionNotSupported',\n     '506': 'VariantAlsoNegotiates',\n     '507': 'InsufficientStorage',\n     '509': 'BandwidthLimitExceeded',\n     '510': 'NotExtended',\n     '511': 'NetworkAuthenticationRequired'\n}\n```\n\n### Internationalization\n\n```js\nconst Therror = require('therror');\n\n// Will be parsed by `therror-doc` and store the message for you in a JSON, ready for use your own i18n library (WIP)\nclass InvalidParamError extends Therror {\n  constructor(props) {\n    super(props);\n    this.message = '${value} is not valid value for ${id}';\n  }\n}\n\ntry {\n  throw new InvalidParamError({ value: 12, id: 'offset' });\n} catch (err) {\n  //i18n is your prefered library\n  //err.name === InvalidParamError\n  err.message = i18n('es-ES', err.name); // return 'El parámetro ${id} no admite como valor ${value}';\n  console.log(err);\n  // [InvalidParamError: El parámetro offset no admite como valor 12]\n}\n```\n\n### Bluebird ready\n\n```js\nconst Therror = require('therror');\nconst Promise = require('bluebird');\n\nclass InvalidParamError extends Therror {}\n\nPromise.try(() => {\n  throw new InvalidParamError('Invalid parameter');\n}).catch(InvalidParamError, err => {\n  // ...\n});\n```\n\n### Add functionality to your errors by [using mixins](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Mix-ins)\n\n#### Shared messages across all instances\n\nDRY. Rehuse the errors customizing only metadata\n\n```js\nconst Therror = require('therror');\n\nclass NotFoundError extends Therror.WithMessage(\n  'The user ${user} does not exists'\n) {}\n\nlet error = new UserNotFoundError({ user: 'John' });\n\n// { [UserNotFoundError: The user John does not exists] }\n\nlet error2 = new UserNotFoundError(error, { user: 'Sarah' });\n\n// { [UserNotFoundError: The user Sarah does not exists] }\n```\n\n#### Custom HTTP Errors\n\nBe expressive with your Server errors\n\n```js\nconst Therror = require('therror');\n\nclass UserNotFound extends Therror.HTTP('404') {}\n\nlet err = new UserNotFound('The user ${user} does not exists', {\n  user: 'Sarah'\n});\n\n// Send the response (Express example)\nres.statusCode(err.statusCode); // 404\nres.json(err.toPayload());\n// {\n//    error: 'UserNotFound',\n//    message: 'The user Sarah does not exists'\n// }\n\nclass DatabaseError extends Therror.HTTP('503') {}\n\nlet err = new DatabaseError(cause, 'BD Misconfigured');\n\nconsole.log(err); // [DatabaseError: BD Misconfigured]\n\n// Send a hidden response to the client (Express example)\nres.statusCode(err.statusCode); // 503\nres.json(err.toPayload());\n// {\n//    error: 'InternalServerError',\n//    message: 'An internal server error occurred'\n// }\n```\n\n#### Serializing your errors\n\nFor easy logging and server returning using [serr](https://github.com/therror/serr).\n\n```js\nconst Therror = require('therror');\n\n// Builtin mixin in therror\nclass FatalError extends Therror.Serializable() {}\n\nlet cause = new Error('ENOENT');\nlet error = new FatalError(cause, 'Something went wrong');\n\nconsole.log('%s', error);\n// FatalError: Something went wrong\n//    at repl:1:35\n//    ...\n// Caused by: Error: ENOENT\n//    at repl:1:50\n//    ...\nconsole.log('%j', error);\n// {\"message\":\"Something went wrong\",\"name\":\"FatalError\",\"constructor\":\"FatalError\",\"causes\":[{\"message\":\"ENOENT\",\"name\":\"Error\",\"constructor\":\"Error\"}]}\n```\n\nYou can also use [logops](https://github.com/telefonicaid/logops), an error friendly logger that incorporates support off the shell for this functionality.\n\n#### Notifications\n\nNever miss again a log trace when creating Errors\n\n```js\nconst Therror = require('therror');\n\n// Subscribe to error creations and log them\nTherror.on('create', console.error);\n\nclass FatalError extends Therror.Notificator() {}\n\nlet fatal = new FatalError('This is immediately logged');\n// [Error: This is immediately logged]\n// console.log(fatal) Not miss anymore a trace cause you forgot to log it\n```\n\n#### Logging levels\n\nCause not all errors have the same severity. Preconfigure them with it\n\n```js\nconst Therror = require('therror');\n\n// Set your favourite logger (defaults to console)\nTherror.Loggable.logger = require('logops');\n\nclass NotFoundError extends Therror.Loggable('info') {}\n\nlet notFound = new NotFoundError('User Not found');\n\nnotFound.log();\n// calls logger.info(notFound)\n// INFO  NotFoundError: User Not Found\n\nnotFound.level();\n// info\n```\n\n#### Namespacing your errors\n\nFor easy identification in logs and tests using `err.name`\n\n```js\nconst Therror = require('therror');\n\n// Builtin mixin in therror\nclass InvalidParamError extends Therror.Namespaced('Server') {}\nlet err = new InvalidParamError('Not a valid parameter');\n\nconsole.log(err);\n// [Server.InvalidParamError: Not a valid parameter]\n```\n\n### Change the template library\n\nTherror ships [lodash template](https://lodash.com/docs#template) system to allow you adding runtime variables to the final error message.\n\nMore info: `Therror.parse()`\n\n## Peer Projects\n\n- [therror-connect](https://github.com/therror/therror-connect): Connect/Express error handler\n- [therror-doc](https://github.com/therror/therror-doc): Documentation parser for therror (WIP)\n- [serr](https://github.com/therror/serr): Error serializer to Objects and Strings\n\n## LICENSE\n\nCopyright 2014,2015,2016 [Telefónica I+D](http://www.tid.es)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","maintainers":[{"name":"jmendiara","email":"jmendiara@gmail.com"},{"name":"palmerabollo","email":"palmerabollo@gmail.com"}],"time":{"modified":"2022-06-27T06:05:17.888Z","created":"2015-06-24T13:28:11.468Z","0.2.0-beta.0":"2015-06-24T13:28:11.468Z","0.2.0":"2015-06-24T13:41:40.707Z","1.0.0-alpha.1":"2016-06-07T12:10:15.702Z","1.0.0-alpha.2":"2016-06-07T15:22:14.808Z","1.0.0-alpha.3":"2016-06-08T10:15:19.281Z","1.0.0-alpha.4":"2016-07-08T12:19:50.824Z","1.0.0-beta.1":"2016-07-09T15:08:22.730Z","1.0.0":"2016-07-15T07:47:27.204Z","2.0.0":"2016-09-19T16:47:22.984Z","2.1.0":"2016-09-23T14:27:55.509Z","2.1.1":"2016-09-26T21:18:01.570Z","3.0.0":"2017-04-24T14:55:03.998Z","3.0.1":"2017-04-25T07:55:23.656Z","3.1.0":"2017-04-25T12:32:04.036Z","4.0.0":"2017-05-19T08:28:15.078Z","4.0.1":"2017-05-19T10:38:29.361Z","4.0.2":"2018-02-26T17:08:27.200Z","4.0.3":"2018-02-26T17:49:49.964Z","4.1.0":"2019-07-05T14:16:19.086Z","4.1.1":"2019-08-08T11:52:01.078Z"},"homepage":"https://therror.github.io/therror","keywords":["error","properties","customizable","extensible","i18n"],"repository":{"type":"git","url":"git://github.com/therror/therror.git"},"author":{"name":"Javier Mendiara Cañardo","email":"javier.mendiaracanardo@telefonica.com"},"bugs":{"url":"https://github.com/therror/therror/issues"},"license":"Apache-2.0","readmeFilename":"README.md","users":{"wmhilton":true}}