playwright/docs/src/test-api/class-testerror.md

24 lines
535 B
Markdown
Raw Normal View History

# class: TestError
2022-07-05 16:24:50 -08:00
* since: v1.10
* langs: js
Information about an error thrown during test execution.
## property: TestError.message
2022-07-05 16:24:50 -08:00
* since: v1.10
- type: ?<[string]>
Error message. Set when [Error] (or its subclass) has been thrown.
## property: TestError.stack
2022-07-05 16:24:50 -08:00
* since: v1.10
- type: ?<[string]>
Error stack. Set when [Error] (or its subclass) has been thrown.
## property: TestError.value
2022-07-05 16:24:50 -08:00
* since: v1.10
- type: ?<[string]>
The value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.