Raise an exception if the Ideone gave us an error.
(result_dict)
| 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): |
no test coverage detected