promise-useful-utils
Version:
useful functions for working with promises
21 lines (18 loc) • 375 B
JavaScript
/**
* Error
* +-- PromiseUsefulUtilsError
* +-- TimeoutError
*/
let spec = {
name: 'PromiseUsefulUtilsError',
message: 'InternalError',
errors: [{
name: 'AggregateError',
message: 'aggregate error'
}, {
name: 'TimeoutError',
message: '{0}'
}]
}
require('error-system').extend(Error, spec)
module.exports = Error.PromiseUsefulUtilsError