mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
14 lines
272 B
Plaintext
14 lines
272 B
Plaintext
/**
|
|
* @name Call to constructor
|
|
* @description Finds places where we call 'new System.Exception(...)'.
|
|
* @tags call
|
|
* constructor
|
|
* new
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from ObjectCreation new
|
|
where new.getObjectType().hasQualifiedName("System.Exception")
|
|
select new
|