node-web-mvc
Version:
node spring mvc
18 lines (17 loc) • 730 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module AnnotationElementTypeError
* @description 注解使用范围异常
*/
const ElementType_1 = __importDefault(require("../servlets/annotations/annotation/ElementType"));
const Exception_1 = __importDefault(require("./Exception"));
class AnnotationElementTypeError extends Exception_1.default {
constructor(name, types, elementType) {
super(`${name} only use at ${types.join(' ')}, but use at ${ElementType_1.default[elementType]}`);
}
}
exports.default = AnnotationElementTypeError;