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

20 lines
495 B
Markdown
Raw Normal View History

# class: TestError
* langs: js
Information about an error thrown during test execution.
## property: TestError.message
- type: <[string]>
Optional error message. Set when [Error] (or its subclass) has been thrown.
## property: TestError.stack
- type: <[string]>
Optional error stack. Set when [Error] (or its subclass) has been thrown.
## property: TestError.value
- type: <[string]>
Optional value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.