Error
- extends: Exception
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)
message
Added in: v1.11Message of the error.
使用方式
error.message
型別 (Type)
name
Added in: v1.11Name of the error which got thrown inside the browser. Optional.
使用方式
error.name
型別 (Type)
stack
Added in: v1.11Stack of the error which got thrown inside the browser. Optional.
使用方式
error.stack
型別 (Type)