1 # errors.py - Arvados-specific exceptions.
4 from apiclient import errors as apiclient_errors
6 class ApiError(apiclient_errors.HttpError):
9 return '; '.join(json.loads(self.content)['errors'])
10 except (KeyError, TypeError, ValueError):
11 return super(ApiError, self)._get_reason()
14 class ArgumentError(Exception):
16 class SyntaxError(Exception):
18 class AssertionError(Exception):
20 class CommandFailedError(Exception):
22 class KeepReadError(Exception):
24 class KeepWriteError(Exception):
26 class NotFoundError(KeepReadError):
28 class NotImplementedError(Exception):
30 class NoKeepServersError(Exception):
32 class StaleWriterStateError(Exception):