File: class-error.md | Updated: 11/18/2025
On this page
Error is raised whenever certain operations are terminated abnormally, e.g. browser closes while page.evaluate() is running. All Playwright exceptions inherit from this class.
Properties
Added in: v1.11 error.message
Message of the error.
Usage
error.message
Type
Added in: v1.11 error.name
Name of the error which got thrown inside the browser. Optional.
Usage
error.name
Type
Added in: v1.11 error.stack
Stack of the error which got thrown inside the browser. Optional.
Usage
error.stack
Type