source: node_modules/undici/lib/mock/mock-errors.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 439 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.