docs: document PlaywrightException in java (#5743)

This commit is contained in:
Yury Semikhatsky 2021-03-05 15:32:33 -08:00 committed by GitHub
parent 8ed49622a2
commit ea9485ec9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

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

View File

@ -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) {