Files
codeql/csharp/ql/examples/snippets/catch_exception.ql
2019-07-26 17:47:11 +02:00

15 lines
335 B
Plaintext

/**
* @id cs/examples/catch-exception
* @name Catch exception
* @description Finds places where we catch exceptions of type 'System.IO.IOException'.
* @tags catch
* try
* exception
*/
import csharp
from CatchClause catch
where catch.getCaughtExceptionType().hasQualifiedName("System.IO.IOException")
select catch