CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Finds places where we raise AnException or one of its subclasses

import python

from Raise raise, ClassValue ex
where
    ex.getName() = "AnException" and
    raise.getException().pointsTo(ex.getASuperType())
select raise, "Don't raise instances of 'AnException'"

  • No labels