Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update copyrights in the documentation.
[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