X Tutup
Skip to content

Commit 2a0b060

Browse files
authored
Update Tutorial.md
1 parent 7c614c3 commit 2a0b060

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/Tutorial.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -431,18 +431,15 @@ however these APIs were not yet exposed to CEF Python.
431431

432432
## Javascript exceptions and Python exceptions
433433

434-
There are cases when executing Javascript code may end up with
435-
Python exception being thrown:
434+
When a Python function is invoked from Javascript and it fails,
435+
a Python exception will be thrown. When Python executes a Javascript
436+
callback and it fails, a Javascript exception will be thrown.
436437

437-
1. When a Python function is invoked from Javascript and it fails,
438-
a Python exception will be thrown
439-
2. When Python executes a Javascript callback and it fails,
440-
a Python exception will be thrown
441-
442-
In other cases to see Javascript exceptions open Developer Tools
438+
To see Javascript exceptions open Developer Tools
443439
window using mouse context menu and switch to Console tab.
444440

445-
There are multiple ways to catch/intercept javascript exceptions:
441+
There are multiple ways to intercept javascript exceptions programmaticaly
442+
in CEF:
446443

447444
1. In Javascript you can register "window.onerror" event to
448445
catch all Javascript exceptions

0 commit comments

Comments
 (0)
X Tutup