CLANG RecursiveASTVisitor try-catch based exception handling

Hello All,

For a Clang tool based on AST Visitor, is it possible to implement a try-catch based exception handling? Intent is to log exception messages in a external log file, if the AST Visitor breaks in between due to un-handled scenarios of type checking.

Any help is greatly appreciated.