Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
18 lines
439 B
JavaScript
18 lines
439 B
JavaScript
'use strict'
|
|
|
|
const { UndiciError } = require('../core/errors')
|
|
|
|
class MockNotMatchedError extends UndiciError {
|
|
constructor (message) {
|
|
super(message)
|
|
Error.captureStackTrace(this, MockNotMatchedError)
|
|
this.name = 'MockNotMatchedError'
|
|
this.message = message || 'The request does not match any registered mock dispatches'
|
|
this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
MockNotMatchedError
|
|
}
|