UNPKG

@coorpacademy/progression-engine

Version:

14 lines (12 loc) 360 B
'use strict'; exports.__esModule = true; const ERRORS = { STATE_VALIDATION_ERROR: 'STATE_VALIDATION_ERROR' }; exports.default = ERRORS; const createStateValidationError = exports.createStateValidationError = message => { const error = new Error(message); error.name = ERRORS.STATE_VALIDATION_ERROR; return error; }; //# sourceMappingURL=errors.js.map