@imbricate/core
Version:
Imbricate Core, Notebook for Engineers
21 lines (20 loc) • 851 B
JavaScript
;
/**
* @author WMXPY
* @namespace Error
* @description Property Feature Not Supported
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyFeatureNotSupportedError = void 0;
const property_error_1 = require("./property-error");
class PropertyFeatureNotSupportedError extends property_error_1.PropertyError {
static withFeature(feature) {
return new PropertyFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
}
constructor(message, reason) {
super(message, PropertyFeatureNotSupportedError.TYPE, reason);
Object.setPrototypeOf(this, PropertyFeatureNotSupportedError.prototype);
}
}
exports.PropertyFeatureNotSupportedError = PropertyFeatureNotSupportedError;
PropertyFeatureNotSupportedError.TYPE = "IMBRICATE_PROPERTY_FEATURE_NOT_SUPPORTED";