12 lines
318 B
JavaScript
12 lines
318 B
JavaScript
|
|
module.exports = function AlreadyInProgress(extra) {
|
|
Error.captureStackTrace(this, this.constructor)
|
|
this.name = this.constructor.name
|
|
this.message = 'calculation request is already in progress'
|
|
if (typeof extra !== 'undefined') {
|
|
this.extra = extra
|
|
}
|
|
}
|
|
|
|
require('util').inherits(module.exports, Error)
|