'Base class for exceptions object on a client
:type code_to_exception: dict
:param code_to_exception: Mapping of error codes (strings) to exception
class that should be raised when encountering a particular
error code.'

def __init__(self, code_to_exception):

    self._code_to_exception = code_to_exception
