• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict'
2
3const { UndiciError } = require('../core/errors')
4
5class MockNotMatchedError extends UndiciError {
6  constructor (message) {
7    super(message)
8    Error.captureStackTrace(this, MockNotMatchedError)
9    this.name = 'MockNotMatchedError'
10    this.message = message || 'The request does not match any registered mock dispatches'
11    this.code = 'UND_MOCK_ERR_MOCK_NOT_MATCHED'
12  }
13}
14
15module.exports = {
16  MockNotMatchedError
17}
18