UNPKG

@imbricate/core

Version:

Imbricate Core, Notebook for Engineers

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