OpenQuizz
Une application de gestion des contenus pédagogiques
Traceback Class Reference
Inheritance diagram for Traceback:
Collaboration diagram for Traceback:

Public Member Functions

def __init__ (self, exc_type, exc_value, tb)
 
def filter_hidden_frames (self)
 
def is_syntax_error (self)
 
def exception (self)
 
def log (self, logfile=None)
 
def paste (self)
 
def render_summary (self, include_title=True)
 
def render_full (self, evalex=False, secret=None, evalex_trusted=True)
 
def plaintext (self)
 
def id (self)
 

Data Fields

 exc_type
 
 exc_value
 
 tb
 
 exception_type
 
 groups
 
 frames
 

Detailed Description

Wraps a traceback.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  exc_type,
  exc_value,
  tb 
)

Member Function Documentation

◆ exception()

def exception (   self)
String representation of the final exception.

◆ filter_hidden_frames()

def filter_hidden_frames (   self)
Remove the frames according to the paste spec.

◆ id()

def id (   self)

◆ is_syntax_error()

def is_syntax_error (   self)
Is it a syntax error?

◆ log()

def log (   self,
  logfile = None 
)
Log the ASCII traceback into a file object.

◆ paste()

def paste (   self)
Create a paste and return the paste id.

◆ plaintext()

def plaintext (   self)

◆ render_full()

def render_full (   self,
  evalex = False,
  secret = None,
  evalex_trusted = True 
)
Render the Full HTML page with the traceback info.

◆ render_summary()

def render_summary (   self,
  include_title = True 
)
Render the traceback for the interactive console.

Field Documentation

◆ exc_type

exc_type

◆ exc_value

exc_value

◆ exception_type

exception_type

◆ frames

frames

◆ groups

groups

◆ tb

tb

The documentation for this class was generated from the following file: