'Initializer.
Args:
code: The error or success code of the operation.
message: An error message associated with any error.
id: The id of the object some operation was performed on.
Raises:
TypeError: If an unknown attribute is passed.
ValueError: If an unknown code is passed.'

def __init__(self, code, message=None, id=None):

    self._message = _ConvertToUnicode(message)
    self._code = code
    if (self._code not in self._CODES):
        raise ValueError(('Unknown    operation    result    code    %r,    must    be    one    of    %s' % (self._code, self._CODES)))
    self._id = _ConvertToUnicode(id)
