collins-error
Version:
Custom error class used by the collins system
22 lines (19 loc) • 375 B
JavaScript
;
/**
* @summary when creating an error follow the following type syntax
* ex. 'what':'who'
* ex. Invalid:File
* ex. Missing:Config
*/
let ErrorTypes = [
'Invalid',
'Missing',
/* --- */
'Config',
'Input',
'File',
/* --- */
'TypeError',
'TestError'
];
module.exports = ErrorTypes.map(type => type.toLowerCase());