Skip to content
Snippets Groups Projects
Commit 53b60be3 authored by Axel Naumann's avatar Axel Naumann
Browse files

Also strip the "runtime" part of the Interpreter exception here.

parent c1026e00
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ namespace cling { ...@@ -27,7 +27,7 @@ namespace cling {
/// Note that this exception is *not* thrown during the execution of the /// Note that this exception is *not* thrown during the execution of the
/// user's code but during its compilation (at runtime). /// user's code but during its compilation (at runtime).
class CompilationException: class CompilationException:
public virtual runtime::InterpreterException, public virtual InterpreterException,
public virtual std::runtime_error { public virtual std::runtime_error {
public: public:
CompilationException(const std::string& reason): CompilationException(const std::string& reason):
......
...@@ -149,10 +149,10 @@ namespace cling { ...@@ -149,10 +149,10 @@ namespace cling {
TI.SetPrompt(Prompt.c_str()); TI.SetPrompt(Prompt.c_str());
} }
catch(runtime::NullDerefException& e) { catch(NullDerefException& e) {
e.diagnose(); e.diagnose();
} }
catch(runtime::InterpreterException& e) { catch(InterpreterException& e) {
llvm::errs() << ">>> Caught an interpreter exception!\n" llvm::errs() << ">>> Caught an interpreter exception!\n"
<< ">>> " << e.what() << '\n'; << ">>> " << e.what() << '\n';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment