@neurosity/sdk
Version:
Neurosity SDK
18 lines (17 loc) • 1.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.exceededMaxItems = exports.locationNotFound = exports.metricNotSupportedByModel = exports.mustSelectDevice = exports.prefix = void 0;
exports.prefix = "Neurosity SDK: ";
exports.mustSelectDevice = new Error(`${exports.prefix}A device must be selected. Make sure to call "neurosity.selectDevice()"`);
const metricNotSupportedByModel = (metric, modelVersion) => {
return new Error(`${exports.prefix}${metric} not supported on model version ${modelVersion}. See docs.neurosity.co for more info.`);
};
exports.metricNotSupportedByModel = metricNotSupportedByModel;
const locationNotFound = (location, modelVersion) => {
return new Error(`${exports.prefix}${location} location not supported on model version ${modelVersion}. Check spelling or see docs.neurosity.co for more info.`);
};
exports.locationNotFound = locationNotFound;
const exceededMaxItems = (maxItems) => {
return new Error(`${exports.prefix}Maximum items in array is ${maxItems}`);
};
exports.exceededMaxItems = exceededMaxItems;