mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
13 lines
355 B
Plaintext
13 lines
355 B
Plaintext
/**
|
|
* @name Throw exception of type
|
|
* @description Finds places where we throw com.example.AnException or one of its subtypes
|
|
* @tags throw
|
|
* exception
|
|
*/
|
|
|
|
import java
|
|
|
|
from ThrowStmt throw
|
|
where throw.getThrownExceptionType().getASupertype*().hasQualifiedName("com.example", "AnException")
|
|
select throw, "Don't throw com.example.AnException"
|