CodeQL queries 1.24

Skip to end of metadata
Go to start of metadata

Finds places where we call 'new System.Exception(...)'.

import csharp

from ObjectCreation new
where new.getObjectType().hasQualifiedName("System.Exception")
select new