MCPcopy Create free account
hub / github.com/modelscope/ms-agent / BuiltInExceptionGroup

Class BuiltInExceptionGroup

ms_agent/utils/utils.py:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30else:
31 # Define a placeholder class for type-checking compatibility
32 class BuiltInExceptionGroup(BaseException):
33
34 def __init__(self, message, exceptions):
35 self.message = message
36 self.exceptions = exceptions
37 self.args = (message, )
38
39 def __str__(self):
40 return f'{self.message}: {self.exceptions}'
41
42 def __repr__(self):
43 return f'ExceptionGroup({self.message!r}, {self.exceptions!r})'
44
45
46def enhance_error(e, prefix: str = ''):

Callers 1

enhance_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected