mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
15 lines
330 B
Plaintext
15 lines
330 B
Plaintext
/**
|
|
* @id java/examples/catch-exception
|
|
* @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
|