diff options
Diffstat (limited to 'src/Exception/Http/InternalServerError.js')
-rw-r--r-- | src/Exception/Http/InternalServerError.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Exception/Http/InternalServerError.js b/src/Exception/Http/InternalServerError.js new file mode 100644 index 0000000..7797886 --- /dev/null +++ b/src/Exception/Http/InternalServerError.js @@ -0,0 +1,18 @@ +import HttpError from './HttpError'; + +export default class InternalServerError extends HttpError { + + /** + * @returns {String} + */ + get name() { + return 'InternalServerError'; + } + + /** + * @param {Response} response + */ + constructor(response) { + super(response, 'Internal Server Error'); + } +}
\ No newline at end of file |