Handle exception of given class
Author: LGTM
import python
from ExceptStmt ex, ClassValue cls
where
cls.getName() = 'MyExceptionClass' and
ex.getType().pointsTo(cls)
select exDescription
Finds places where we handle MyExceptionClass exceptions
import python
from ExceptStmt ex, ClassValue cls
where
cls.getName() = 'MyExceptionClass' and
ex.getType().pointsTo(cls)
select exFinds places where we handle MyExceptionClass exceptions