mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
15 lines
342 B
Plaintext
15 lines
342 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().hasFullyQualifiedName("System.IO", "IOException")
|
|
select catch
|