CodeQL library for C#
codeql/csharp-all 0.9.1 (changelog, source)
Search

Member predicate CatchClause::getCaughtExceptionType

Gets the type of the exception caught. For example, the type of the exception caught on line 4 is System.IO.IOException in

try {
  ...
}
catch (System.IO.IOException ex) {
  ...
}
ExceptionClass getCaughtExceptionType()