2021-04-28 10:41:46 +02:00
|
|
|
# class: Error
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.11
|
2021-04-28 10:41:46 +02:00
|
|
|
* 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.
|
|
|
|
|
2022-03-25 19:30:45 +01:00
|
|
|
- [error.message](./class-error.md#errormessage)
|
|
|
|
- [error.name](./class-error.md#errorname)
|
|
|
|
- [error.stack](./class-error.md#errorstack)
|
2021-04-28 10:41:46 +02:00
|
|
|
|
|
|
|
## property: Error.message
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.11
|
2021-04-28 10:41:46 +02:00
|
|
|
- returns: <[str]>
|
|
|
|
|
|
|
|
Message of the error.
|
|
|
|
|
|
|
|
## property: Error.name
|
2022-07-05 16:24:50 -08:00
|
|
|
* since: v1.11
|
2022-04-06 19:02:10 -07:00
|
|
|
- returns: ?<[str]>
|
2021-04-28 10:41:46 +02:00
|
|
|
|
|
|
|
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
|
2022-04-06 19:02:10 -07:00
|
|
|
- returns: ?<[str]>
|
2021-04-28 10:41:46 +02:00
|
|
|
|
|
|
|
Stack of the error which got thrown inside the browser. Optional.
|