We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5591a4 commit ace473aCopy full SHA for ace473a
src/ansys/dpf/gate/errors.py
@@ -5,8 +5,19 @@ class DPFServerException(Exception):
5
"""Error raised when the DPF server has encountered an error."""
6
7
def __init__(self, msg=""):
8
- Exception.__init__(self, msg)
9
-
+ parties = [p.strip() for p in msg.split('<-')]
+
10
+ if len(parties) >= 2:
11
+ explicit = parties[-1]
12
+ entities = parties[:-1]
13
+ result = "<-".join(entities)
14
+ else:
15
+ explicit = msg.strip()
16
+ result = ""
17
18
+ Exception.__init__(self, explicit)
19
+ self.add_note(result)
20
21
22
class DPFServerNullObject(Exception):
23
"""Error raised when the DPF server cannot find an object."""
0 commit comments