UNPKG

@imbricate/core

Version:

Imbricate Core, Notebook for Engineers

21 lines (20 loc) 914 B
"use strict"; /** * @author WMXPY * @namespace Error * @description Feature Not Supported */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ImbricateDocumentFeatureNotSupportedError = void 0; const document_error_1 = require("./document-error"); class ImbricateDocumentFeatureNotSupportedError extends document_error_1.DocumentError { static withFeature(feature) { return new ImbricateDocumentFeatureNotSupportedError(`Feature ${feature} is not supported`, feature); } constructor(message, reason) { super(message, ImbricateDocumentFeatureNotSupportedError.TYPE, reason); Object.setPrototypeOf(this, ImbricateDocumentFeatureNotSupportedError.prototype); } } exports.ImbricateDocumentFeatureNotSupportedError = ImbricateDocumentFeatureNotSupportedError; ImbricateDocumentFeatureNotSupportedError.TYPE = "IMBRICATE_DOCUMENT_FEATURE_NOT_SUPPORTED";