def __init__(self, message='Unknown', code=None):
        self.msg = message
        self.code = code
        if code:
            outstr = '%s: %s' % (code, message)
        else:
            outstr = '%s' % message
        super(ApiError, self).__init__(outstr)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/exception.py/ApiError.__init__/original