https://github.com/JuliaLang/julia
Revision 85164250068bdccf7d22a7fea0d0a3fc55178d8d authored by Jameson Nash on 17 November 2015, 21:09:27 UTC, committed by Jameson Nash on 17 November 2015, 22:25:08 UTC
Instead of making task_done_hook aware of the REPL specifically,
this gives clients (such as the REPL) the ability to register a
handler for any unhandled exception.

In reality, the only unhandled exceptions are those that occur
when trying to run task_done_hook or early on the root task.
Accordingly, the most like error is InterruptException,
but not exclusively.

This approach allows the REPL to print an error and return to a prompt,
even when the Task state of eval_user_input is too inconsistent or
unknown to be called directly.

If the last-chance exception handler returns or throws an error,
that that error is then considered to be finally fatal.
The return value when setting the exception handler allows the user
to chain and reset the handler.
1 parent 4a919e8
History
Tip revision: 85164250068bdccf7d22a7fea0d0a3fc55178d8d authored by Jameson Nash on 17 November 2015, 21:09:27 UTC
alternative structured approach to replace the REPL InterruptException hack
Tip revision: 8516425
File Mode Size
base
contrib
deps
doc
etc
examples
src
test
ui
.gitignore -rw-r--r-- 207 bytes
.mailmap -rw-r--r-- 9.5 KB
.travis.yml -rw-r--r-- 4.0 KB
CONTRIBUTING.md -rw-r--r-- 16.1 KB
DEBUGGER.md -rw-r--r-- 1.2 KB
DISTRIBUTING.md -rw-r--r-- 8.8 KB
LICENSE.md -rw-r--r-- 4.7 KB
Make.inc -rw-r--r-- 28.4 KB
Make.powerpc -rw-r--r-- 1.2 KB
Makefile -rw-r--r-- 25.9 KB
NEWS.md -rw-r--r-- 77.7 KB
README.arm.md -rw-r--r-- 3.0 KB
README.md -rw-r--r-- 26.6 KB
README.windows.md -rw-r--r-- 17.0 KB
VERSION -rw-r--r-- 10 bytes
Windows.inc -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 1.6 KB

README.md

back to top