mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
/**
|
|
* @id cs/examples/throw-exception
|
|
* @name Throw exception of given type
|
|
* @description Finds places where we throw 'System.IO.IOException' or one of its subtypes.
|
|
* @tags throw
|
|
* exception
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from ThrowStmt throw
|
|
where throw.getThrownExceptionType().getBaseClass*().hasQualifiedName("System.IO.IOException")
|
|
select throw
|