Throw exception of given type

Author: LGTM

import csharp

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

Description

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