playwright/docs/src/api/class-error.md
2021-04-28 10:41:46 +02:00

686 B

class: Error

  • 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.

property: Error.message

  • returns: <[str]>

Message of the error.

property: Error.name

  • returns: <[str]>

Name of the error which got thrown inside the browser. Optional.

property: Error.stack

  • returns: <[str]>

Stack of the error which got thrown inside the browser. Optional.