43 Commits

Author SHA1 Message Date
David Luecke
f3ddab637e
fix(errors): Allows to pass no error message (#2794) 2022-10-12 10:31:43 -07:00
David Luecke
c606c56dc2
chore: Format code using Prettier and updated ESLint rules (#2647)
Co-authored-by: Marshall Thompson <marshall@creativeideal.net>
2022-05-27 15:21:13 -07:00
David Luecke
935ec0ab86
chore(dependencies): Update all dependencies (#2448) 2021-09-19 14:43:23 -07:00
David Luecke
29a33bc5cf chore: Merge with latest master 2020-05-18 10:36:26 -07:00
David Luecke
17d80e0b8e
chore(typescript): Migrate @feathersjs/errors to modern classes and TypeScript (#1920) 2020-04-16 14:38:52 -07:00
jnardone
6801428f8f
fix(errors): Add 410 Gone to errors (#1849)
Co-authored-by: Joe Nardone <joe@wirewheel.io>
2020-03-23 21:16:56 -07:00
David Luecke
1c5c0d3539
chore: Move Express error handlers into @feathersjs/express (#1306) 2019-04-22 19:36:39 -07:00
David Luecke
9dd671301a
feat: Add TypeScript definitions (#1275) 2019-04-06 12:43:57 -07:00
David Luecke
d568627de1
chore(test): Update assertion format to always use strict equality (#1105) 2018-11-21 19:04:30 -08:00
David Luecke
a0773a372f
Update all dependencies (#967)
chore: Update all dependencies
2018-08-30 10:50:51 -07:00
David Luecke
33337790d9 Update @feathersjs/errors 2018-08-20 19:58:09 -07:00
David Luecke
3e0801f750 Add a verbose flag to notFound handler (#107) 2018-08-20 19:58:09 -07:00
Nikas Praninskas
b0de66e986 Fix instanceof and prototypical inheritance (#104) 2018-08-20 19:58:09 -07:00
David Luecke
4b5c62d962 Allow ability to log middleware errors (#95) 2018-08-20 19:58:09 -07:00
Ryan Wheale
f439148567 91 allow mixed config (#94)
* Allow mixture of options for custom error handling

* Update the README to include info on the error handler
2018-08-20 19:58:09 -07:00
David Luecke
1989161f2e Update to Buzzard infrastructure (#93)
* Update to new plugin infrastructure and npm scope (#92)

* Update to new plugin infrastructure and npm scope

* Update debug dependency

* Update year and release script

* Prepare prerelease

* 3.0.0-pre.1

* Updating changelog
2018-08-20 19:58:09 -07:00
David Luecke
dfe5c682f5 Add back default error message (#83) 2018-08-20 19:58:09 -07:00
David Luecke
16fcd323c8 Capture proper stack trace and error messages (#82)
* Capture propert stack trace and error messages

* Fix typo
2018-08-20 19:58:09 -07:00
Daniel Constantin
6328cecd3b Fix errors property being lost when cloning (#76) 2018-08-20 19:58:09 -07:00
Daniel Constantin
f6560ca207 Allow data to be an array (#75) 2018-08-20 19:58:09 -07:00
David Luecke
02c6ab199e Change back to old Error inheritance (#73)
* Change back to old Error inheritance

* Fix tests and add missing packages
2018-08-20 19:58:09 -07:00
greenkeeper[bot]
8bac3d3bcd Update semistandard to the latest version 🚀 (#72)
* chore(package): update semistandard to version 11.0.0

https://greenkeeper.io/

* Reorder import
2018-08-20 19:58:09 -07:00
greenkeeper[bot]
05b57b22f9 Update dependencies to enable Greenkeeper 🌴 (#71)
* chore(package): update dependencies

https://greenkeeper.io/

* docs(readme): add Greenkeeper badge

https://greenkeeper.io/

* Skip Sinon error for now
2018-08-20 19:58:09 -07:00
Francisco Sales
c67463772a adding more error types (#55) 2018-08-20 19:58:09 -07:00
Cory Smith
89423615be Merge pull request #52 from feathersjs/semistandard
jshint —> semistandard
2018-08-20 19:58:09 -07:00
Eric Kryski
e16cf286f5 adding ability to get a feathers error by http status code (#46) 2018-08-20 19:58:09 -07:00
Eric Kryski
8c245cd09d Not found (#45)
* fixing typo in test

* adding not-found handler
2018-08-20 19:58:09 -07:00
David Luecke
89fb29a155 Add an error conversion method (#43) 2018-08-20 19:58:09 -07:00
Eric Kryski
7ecc29de76 Merge pull request #36 from feathersjs/custom-handlers
Custom handlers
2018-08-20 19:58:09 -07:00
Eric Kryski
e2960c41cc adding test for 400 error with data 2018-08-20 19:58:09 -07:00
Eric Kryski
1ed50bbd4b Merge pull request #26 from feathersjs/separate-handler
move error handler out of index
2018-08-20 19:58:09 -07:00
David Luecke
9a745c419e Merge pull request #25 from feathersjs/default-html-23
Adding default error page and make HTML formatting optional
2018-08-20 19:58:09 -07:00
David Luecke
7557a01c14 Merge pull request #23 from feathersjs/error-tests
Make fully CommonJS compatible and add error middleware tests
2018-08-20 19:58:09 -07:00
Eric Kryski
d4f1775df3 Merge pull request #22 from feathersjs/error-handler
adding error handler back
2018-08-20 19:58:09 -07:00
Eric Kryski
63b877dcc0 supporting immutable data. Closes #19 2018-08-20 19:58:09 -07:00
Eric Kryski
910bcfa5fb exposing our generic FeathersError so that we can check error types in an error handler 2018-08-20 19:58:09 -07:00
Eric Kryski
4daeabb82b adding a couple more tests. Adding ability to pass in multiple errors without a message 2018-08-20 19:58:09 -07:00
Eric Kryski
eedb34dda8 Merge pull request #15 from feathersjs/es6-class-fix
Es6 class fix
2018-08-20 19:58:09 -07:00
Eric Kryski
1acdbacc1a Merge pull request #13 from feathersjs/es6
complete rewrite. Closes #11 and #12.
2018-08-20 19:58:09 -07:00
Eric Kryski
2035488980 Merge pull request #4 from feathersjs/core-compatible
Core compatible
2018-08-20 19:58:09 -07:00
Eric Kryski
6456c2f125 exposing error types directly for use in service objects 2018-08-20 19:58:09 -07:00
Eric Kryski
a82eb2333c adding tests 2018-08-20 19:58:09 -07:00
Eric Kryski
57600a8600 initial commit. 2018-08-20 19:58:09 -07:00