@foxpage/foxpage-node-sdk
Version:
foxpage node sdk
17 lines (16 loc) • 597 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFoundDSLError = exports.NotFoundDSLErrorCode = void 0;
const enum_1 = require("./enum");
exports.NotFoundDSLErrorCode = 'NOT_FOUND_DSL_EXCEPTION';
class NotFoundDSLError extends Error {
constructor(pageId, msg) {
super(`can't find page content by id: "${pageId}", detail: ` + msg);
this.code = exports.NotFoundDSLErrorCode;
this.status = enum_1.FoxpageStatus.NOT_FIND_DSL;
this.detail = {
pageId,
};
}
}
exports.NotFoundDSLError = NotFoundDSLError;