Handle the default interpreter's runtime exception.
This commit is contained in:
parent
7c6324d79b
commit
34d2c33c18
@ -16,6 +16,7 @@ namespace cling {
|
||||
///\brief Base class for all interpreter exceptions.
|
||||
///
|
||||
class InterpreterException {
|
||||
public:
|
||||
virtual void what() throw();
|
||||
};
|
||||
|
||||
|
@ -91,6 +91,10 @@ namespace cling {
|
||||
|
||||
}
|
||||
catch(runtime::NullDerefException& e) {
|
||||
llvm::errs() << "Exception was thrown at runtime. Recovering...\n";
|
||||
e.what();
|
||||
}
|
||||
catch(runtime::InterpreterException& e) {
|
||||
// The diagnostic goes here:
|
||||
e.what();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user