mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-27 12:50:47 +05:00
18 lines
334 B
Python
18 lines
334 B
Python
![]() |
# -*- coding: utf-8 -*-
|
||
|
|
||
|
class fissError(Exception):
|
||
|
"""
|
||
|
usage:
|
||
|
try:
|
||
|
instructions()
|
||
|
except:
|
||
|
raise fissError(traceback.extract_stack(),"mon message")
|
||
|
"""
|
||
|
def __init__(self, pile, msg):
|
||
|
self.pile = pile
|
||
|
self.msg = msg
|
||
|
|
||
|
def __str__(self):
|
||
|
return 'msg=%s\npile=%s\n'%(self.msg, repr(self.pile))
|
||
|
|