File: catch_and_retrow_cpp_exception.js

package info (click to toggle)
cgal 6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 144,912 kB
  • sloc: cpp: 810,858; ansic: 208,477; sh: 493; python: 411; makefile: 286; javascript: 174
file content (17 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function throw_exception() {
    main_window.throw_exception();
}

f = function() {
    throw_exception()
}

try {
    f()
} catch(e) {
    print_exception_and_bt(e)
    print("Rethrow the exception...")
    throw e
}

print("OK from catch_and_retrow_cpp_exception")