UNPKG

node-web-mvc

Version:
17 lines (16 loc) 637 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /** * @module HttpRequestMethodNotSupportedException * @description 请求方法不支持 */ const Exception_1 = __importDefault(require("./Exception")); class HttpRequestMethodNotSupportedException extends Exception_1.default { constructor(method, allowMethods) { super(`${allowMethods.join(',')} Request method ${method} not supported`); } } exports.default = HttpRequestMethodNotSupportedException;