mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-21 05:45:12 +02:00
modified
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const Logger_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Logger"));
|
||||
const HttpExceptionHandler_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/HttpExceptionHandler"));
|
||||
class ExceptionHandler extends HttpExceptionHandler_1.default {
|
||||
constructor() {
|
||||
super(Logger_1.default);
|
||||
this.statusPages = {
|
||||
'403': 'errors/unauthorized',
|
||||
'404': 'errors/not-found',
|
||||
'500..599': 'errors/server-error',
|
||||
};
|
||||
}
|
||||
}
|
||||
exports.default = ExceptionHandler;
|
||||
//# sourceMappingURL=Handler.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Handler.js","sourceRoot":"","sources":["../../../app/Exceptions/Handler.ts"],"names":[],"mappings":";;;;;AAeA,sFAA4C;AAC5C,kHAAwE;AAExE,MAAqB,gBAAiB,SAAQ,8BAAoB;IAOhE;QACE,KAAK,CAAC,gBAAM,CAAC,CAAA;QAPL,gBAAW,GAAG;YACtB,KAAK,EAAE,qBAAqB;YAC5B,KAAK,EAAE,kBAAkB;YACzB,UAAU,EAAE,qBAAqB;SAClC,CAAA;IAID,CAAC;CACF;AAVD,mCAUC"}
|
||||
Reference in New Issue
Block a user