Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: document PlaywrightException in java (#5743)

Yury Semikhatskyea9485ec9a01
diff --git a/docs/src/api/class-playwrightexception.md b/docs/src/api/class-playwrightexception.md
new file mode 100644
index 0000000000..8e7227c2c8
--- /dev/null
+++ b/docs/src/api/class-playwrightexception.md
@@ -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.
diff --git a/utils/doclint/documentation.js b/utils/doclint/documentation.js
index 2c0b303e98..e2568addf2 100644
--- a/utils/doclint/documentation.js
+++ b/utils/doclint/documentation.js
@@ -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) {