playwright/docs/src/api/class-error.md

31 lines
733 B
Markdown
Raw Normal View History

# class: Error
2022-07-05 16:24:50 -08:00
* since: v1.11
* langs: python
* extends: [Exception]
Error is raised whenever certain operations are terminated abnormally, e.g.
browser closes while [`method: Page.evaluate`] is running. All Playwright exceptions
inherit from this class.
- [error.message](./class-error.md#errormessage)
- [error.name](./class-error.md#errorname)
- [error.stack](./class-error.md#errorstack)
## property: Error.message
2022-07-05 16:24:50 -08:00
* since: v1.11
- returns: <[str]>
Message of the error.
## property: Error.name
2022-07-05 16:24:50 -08:00
* since: v1.11
- returns: ?<[str]>
Name of the error which got thrown inside the browser. Optional.
## property: Error.stack
2022-07-05 16:24:50 -08:00
* since: v1.11
- returns: ?<[str]>
Stack of the error which got thrown inside the browser. Optional.