Salome HOME
general crack dialog, user message mecanism for some errors
[modules/smesh.git] / src / Tools / blocFissure / gmu / fissError.py
1 # -*- coding: utf-8 -*-
2
3 class fissError(Exception):
4   """
5   usage:
6   try:
7     instructions()
8   except:
9     raise fissError(traceback.extract_stack(),"mon message")  
10   """
11   def __init__(self, pile, msg):
12     self.pile = pile    
13     self.msg = msg
14
15   def __str__(self):
16     return 'msg=%s\npile=%s\n'%(self.msg, repr(self.pile))
17