@neurosity/sdk
Version:
Neurosity SDK
12 lines (11 loc) • 715 B
JavaScript
export const prefix = "Neurosity SDK: ";
export const mustSelectDevice = new Error(`${prefix}A device must be selected. Make sure to call "neurosity.selectDevice()"`);
export const metricNotSupportedByModel = (metric, modelVersion) => {
return new Error(`${prefix}${metric} not supported on model version ${modelVersion}. See docs.neurosity.co for more info.`);
};
export const locationNotFound = (location, modelVersion) => {
return new Error(`${prefix}${location} location not supported on model version ${modelVersion}. Check spelling or see docs.neurosity.co for more info.`);
};
export const exceededMaxItems = (maxItems) => {
return new Error(`${prefix}Maximum items in array is ${maxItems}`);
};