mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
218 B
Plaintext
13 lines
218 B
Plaintext
/**
|
|
* @name Test for try catches
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, TryStmt s
|
|
where
|
|
s.getEnclosingCallable() = m and
|
|
m.getName() = "MainTryThrow" and
|
|
count(s.getACatchClause()) = 2
|
|
select s, s.getACatchClause()
|