[crosperf] Clean up exceptions.

Found all instances of 'raise Exception' and changed them to raise
something slightly more specific.  Changed a few 'except Exception'
statements appropriately as well.

BUG=chromium:566255
TEST=None

Change-Id: If2666bd55838342bc71431e5e6ab2157c2c9e125
Reviewed-on: https://chrome-internal-review.googlesource.com/270731
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
diff --git a/image_chromeos.py b/image_chromeos.py
index f28998d..d95434a 100755
--- a/image_chromeos.py
+++ b/image_chromeos.py
@@ -138,7 +138,7 @@
             list(options.remote.split()), options.chromeos_root)
         should_unlock = True
       except Exception as e:
-        raise Exception('Error acquiring machine: %s' % str(e))
+        raise RuntimeError('Error acquiring machine: %s' % str(e))
 
     reimage = False
     local_image = False
@@ -191,8 +191,8 @@
       if local_image:
         if located_image.find(real_src_dir) != 0:
           if located_image.find(real_chroot_dir) != 0:
-            raise Exception('Located image: %s not in chromeos_root: %s' %
-                            (located_image, options.chromeos_root))
+            raise RuntimeError('Located image: %s not in chromeos_root: %s' %
+                               (located_image, options.chromeos_root))
           else:
             chroot_image = located_image[len(real_chroot_dir):]
         else: