MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / _handle_error

Method _handle_error

ideone/__init__.py:50–58  ·  view source on GitHub ↗

Raise an exception if the Ideone gave us an error.

(result_dict)

Source from the content-addressed store, hash-verified

48
49 @staticmethod
50 def _handle_error(result_dict):
51 """
52 Raise an exception if the Ideone gave us an error.
53 """
54 error = result_dict['error']
55 if error == Ideone.ERROR_OK:
56 return
57 else:
58 raise IdeoneError(error)
59
60 @staticmethod
61 def _collapse_language_array(language_array):

Callers 5

create_submissionMethod · 0.80
submission_statusMethod · 0.80
submission_detailsMethod · 0.80
languagesMethod · 0.80
testMethod · 0.80

Calls 1

IdeoneErrorClass · 0.85

Tested by

no test coverage detected