Files
codeql/java/ql/examples/catch_exception.ql
2019-07-26 17:47:11 +02:00

14 lines
294 B
Plaintext

/**
* @name Catch exception
* @description Finds places where we catch exceptions of type com.example.AnException
* @tags catch
* try
* exception
*/
import java
from CatchClause catch
where catch.getACaughtType().hasQualifiedName("com.example", "AnException")
select catch