Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Capture exceptions and expose them to the REPL #289
EDIT: Original issue was for
This can be exposed to the REPL as a value, and would be useful for a variety of reasons:
Currently it just prints
haoyi-static-analysis@ while(true)() ^C Interrupted!
When you interrupt it. We could instead assign it to some value
haoyi-static-analysis@ while(true)() ^C val res12: InterruptedException = ...
Which would both show the user that it was interrupted, and let them dig deeper if they wished to
Actually this might not be unique to ThreadDeath; any exception that gets thrown should be made available as a
By making these uncaught exceptions available to the shell session by default, we could save a lot of annoying re-running-code-with-try-catch during interactive development and exploration
Turn out the normal REPL has a mutable