UNPKG

@neurosity/sdk

Version:
12 lines (11 loc) 715 B
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}`); };