Salome HOME
projects
/
tools
/
eficas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
CCAR:amelioration de la fonctionnalité mots clés inconnus
[tools/eficas.git]
/
Noyau
/
N_Exception.py
1
"""
2
Ce module contient la classe AsException
3
"""
4
5
# Modules Python
6
import types
7
8
class AsException(Exception):
9
def __str__(self):
10
if not self.args:
11
return ''
12
elif len(self.args) == 1:
13
return str(self.args[0])
14
else:
15
s=''
16
for e in self.args:
17
if type(e) == types.StringType: s=s+ ' ' + e
18
else:s=s+ ' ' + str(e)
19
return s
20