Urara-Blog/node_modules/.pnpm-store/v3/files/68/041647e7e72f547d34b83ab3c805d46680298ef52b652358a595f9bbba9d026e2c4684f2d2449b259c518f8a0fa3aef85964c5725228ac8c78ddb4fc76c9b7
2022-08-14 01:14:53 +08:00

17 lines
439 B
Text

'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
}