source: node_modules/undici/docs/api/MockErrors.md@ 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: 595 bytes
Line 
1# MockErrors
2
3Undici exposes a variety of mock error objects that you can use to enhance your mock error handling.
4You can find all the mock error objects inside the `mockErrors` key.
5
6```js
7import { mockErrors } from 'undici'
8```
9
10| Mock Error | Mock Error Codes | Description |
11| --------------------- | ------------------------------- | ---------------------------------------------------------- |
12| `MockNotMatchedError` | `UND_MOCK_ERR_MOCK_NOT_MATCHED` | The request does not match any registered mock dispatches. |
Note: See TracBrowser for help on using the repository browser.