aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/node_modules/undici/lib/mock/mock-errors.js
blob: 5442c0e8d2c20c3ad603203e4fe092a041c14c6e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















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