MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / AlgorithmException

Class AlgorithmException

Algorithmia/errors.py:13–23  ·  view source on GitHub ↗

Base algorithm error exception

Source from the content-addressed store, hash-verified

11 pass
12
13class AlgorithmException(ApiError):
14 '''Base algorithm error exception'''
15 def __init__(self, message, stack_trace=None, error_type=None):
16 self.message = message
17 self.error_type = error_type
18 self.stack_trace = stack_trace
19 def __str__(self):
20 if self.stack_trace:
21 return repr(self.message + "\n" + self.stack_trace)
22 else:
23 return repr(self.message)
24
25
26def raiseDataApiError(result):

Callers 2

test_no_auth_clientMethod · 0.90
raiseAlgoApiErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_no_auth_clientMethod · 0.72