mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: document PlaywrightException in java (#5743)
This commit is contained in:
parent
8ed49622a2
commit
ea9485ec9a
7
docs/src/api/class-playwrightexception.md
Normal file
7
docs/src/api/class-playwrightexception.md
Normal file
@ -0,0 +1,7 @@
|
||||
# class: PlaywrightException
|
||||
* langs: java
|
||||
* extends: [RuntimeException]
|
||||
|
||||
PlaywrightException is thrown whenever certain operations are terminated abnormally, e.g.
|
||||
browser closes while [`method: Page.evaluate`] is running. All Playwright exceptions
|
||||
inherit from this class.
|
||||
@ -68,7 +68,7 @@ class Documentation {
|
||||
for (const [name, clazz] of this.classes.entries()) {
|
||||
clazz.validateOrder(errors, clazz);
|
||||
|
||||
if (!clazz.extends || clazz.extends === 'EventEmitter' || clazz.extends === 'Error')
|
||||
if (!clazz.extends || clazz.extends === 'EventEmitter' || clazz.extends === 'Error' || clazz.extends === 'RuntimeException')
|
||||
continue;
|
||||
const superClass = this.classes.get(clazz.extends);
|
||||
if (!superClass) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user