CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate Cached::alwaysThrowsException

Holds if method m always throws an exception of type t.

Import path

import semmle.code.cil.CallableReturns
predicate alwaysThrowsException(Method m, Type t)