CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/FWCore/GuiBrowsers/python/Vispa/Main/Exceptions.py

Go to the documentation of this file.
00001 import sys
00002 import traceback
00003 
00004 class NoCurrentTabControllerException(Exception):
00005     """ This exception is raised if a function tries to access the Application's current tab controller when there is no currentTab() in tabWidget().
00006     """
00007     pass
00008 
00009 class PluginIgnoredException(Exception):
00010     """ This exception is raised if a plugin cannot be loaded and shall be ignored.
00011     """
00012     pass
00013 
00014 class PluginNotLoadedException(ImportError):
00015     """ This exception is raised if a plugin cannot be loaded and shall raise a warning.
00016     """
00017     pass
00018 
00019 def exception_traceback():
00020     ty,va,tb=sys.exc_info()
00021     return "".join(traceback.format_exception(ty,va,tb))