@imbricate/core
Version:
Imbricate Core, Notebook for Engineers
20 lines (19 loc) • 833 B
JavaScript
;
/**
* @author WMXPY
* @namespace Error
* @description Feature Not Supported
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImbricateDatabaseFeatureNotSupportedError = void 0;
const database_error_1 = require("./database-error");
class ImbricateDatabaseFeatureNotSupportedError extends database_error_1.ImbricateDatabaseError {
static withFeature(feature) {
return new ImbricateDatabaseFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
}
constructor(message, reason) {
super(message, ImbricateDatabaseFeatureNotSupportedError.TYPE, reason);
}
}
exports.ImbricateDatabaseFeatureNotSupportedError = ImbricateDatabaseFeatureNotSupportedError;
ImbricateDatabaseFeatureNotSupportedError.TYPE = "IMBRICATE_DATABASE_FEATURE_NOT_SUPPORTED";