Classes | |
class | ConfigError |
class | ModuleCloneError |
Functions | |
def | format_outerframe |
def | format_typename |
def ExceptionHandling::format_outerframe | ( | number | ) |
formats the outer frame 'number' to output like: In file foo.py, line 8: process.aPath = cms.Path(module1*module2) 'number' is the number of frames to go back relative to caller.
Definition at line 13 of file ExceptionHandling.py.
00014 : 00015 """formats the outer frame 'number' to output like: 00016 In file foo.py, line 8: 00017 process.aPath = cms.Path(module1*module2) 00018 00019 'number' is the number of frames to go back relative to caller. 00020 """ 00021 frame = inspect.stack()[number+1] #+1 because this routine adds another call 00022 return "In file %s, line %s:\n %s" %(frame[1], frame[2], frame[4][0]) 00023
def ExceptionHandling::format_typename | ( | object | ) |
format the typename and return only the last part
Definition at line 24 of file ExceptionHandling.py.