def _make_excp(self, error):
        if "ERRORCODE" not in error or "ERRORMESSAGE" not in error:
            return None
        if error["ERRORCODE"] == 4:
            return InvalidCredsError(error["ERRORMESSAGE"])
        return LinodeException(error["ERRORCODE"], error["ERRORMESSAGE"])
Convert an API error to a LinodeException instance
dataset/ETHPy150Open cloudkick/libcloud/libcloud/compute/drivers/linode.py/LinodeResponse._make_excp