Salome HOME
projects
/
tools
/
eficas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ae3b4ad38ce5b25350a750263bfcee1f5eca5f2a
[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