Ghost/core/server/api
Katharina Irrgang d81bc91bd2 Error creation (#7477)
refs #7116, refs #2001

- Changes the way Ghost errors are implemented to benefit from proper inheritance
- Moves all error definitions into a single file
- Changes the error constructor to take an options object, rather than needing the arguments to be passed in the correct order.
- Provides a wrapper so that any errors that haven't already been converted to GhostErrors get converted before they are displayed.

Summary of changes:

* 🐛  set NODE_ENV in config handler
*   add GhostError implementation (core/server/errors.js)
  - register all errors in one file
  - inheritance from GhostError
  - option pattern
* 🔥  remove all error files
*   wrap all errors into GhostError in case of HTTP
* 🎨  adaptions
  - option pattern for errors
  - use GhostError when needed
* 🎨  revert debug deletion and add TODO for error id's
2016-10-06 13:27:35 +01:00
..
authentication.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
db.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
index.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
invites.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
mail.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
notifications.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
utils.js Error creation (#7477) 2016-10-06 13:27:35 +01:00