Ghost/core/server/errors/internalservererror.js
Sebastian Gierlinger 79a80b67ac Invite user API
closes #3080
- added users.invite() to add user from email with random password
- added `GET /ghost/api/v0.1/users/` to invite users and resend
invitations
- removed one user limit
- added global utils for uid generation
- changed some „“ to ‚‘
2014-07-02 16:22:18 +02:00

15 lines
405 B
JavaScript

// # Internal Server Error
// Custom error class with status code and type prefilled.
function InternalServerError(message) {
this.message = message;
this.stack = new Error().stack;
this.code = 500;
this.type = this.name;
}
InternalServerError.prototype = Object.create(Error.prototype);
InternalServerError.prototype.name = 'InternalServerError';
module.exports = InternalServerError;