main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
439 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | const { UndiciError } = require('../core/errors')
|
---|
| 4 |
|
---|
| 5 | class 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 |
|
---|
| 15 | module.exports = {
|
---|
| 16 | MockNotMatchedError
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.