mirror of
https://github.com/github/codeql.git
synced 2026-03-22 23:49:43 +01:00
11 lines
215 B
Plaintext
11 lines
215 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()
|