CodeQL library for Python
codeql/python-all 0.6.4 (changelog, source)
Search

Module Exceptions

Provides classes and predicates for tracking exceptions and information associated with exceptions.

Import path

import semmle.python.security.Exceptions

Imports

Classes

CallToTracebackFunction

Represents calls to functions in the traceback module that return sequences of exception information.

ErrorInfoSource

A class representing sources of information about execution state exposed in tracebacks and the like.

ExceptionInfo

This represents information relating to an exception, for instance the message, arguments or parts of the exception traceback.

ExceptionInfoSequence

Represents a sequence of pieces of information relating to an exception, for instance the contents of the args attribute, or the stack trace.

ExceptionKind

This kind represents exceptions themselves.

ExceptionSource

A source of exception objects, either explicitly created, or captured by an except statement.

FormattedTracebackSource

Represents calls to functions in the traceback module that return a single string of information about an exception.