Skip to main content

Error

Error is raised whenever certain operations are terminated abnormally, e.g. browser closes while page.evaluate(expression, **kwargs) is running. All Playwright exceptions inherit from this class.

error.message

Added in: v1.11

Message of the error.

error.name

Added in: v1.11

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

error.stack

Added in: v1.11

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