CodeQL library for C#
codeql/csharp-all 0.7.4 ( 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 ( )