CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds places where we throw 'System.IO.IOException' or one of its subtypes.

import csharp

from ThrowStmt throw
where throw.getThrownExceptionType().getBaseClass*().hasQualifiedName("System.IO.IOException")
select throw