am b7bbd629: Merge "Camera2: Do not throw unexpected runtime exception to app" into mnc-dev

* commit 'b7bbd629eb0370f36ce27cbc9ecfc7e5c9d8953f':
  Camera2: Do not throw unexpected runtime exception to app
This commit is contained in:
Eino-Ville Talvala
2015-06-17 18:44:00 +00:00
committed by Android Git Automerger

View File

@@ -138,8 +138,8 @@ public class CameraBinderDecorator {
* errors, then add them to the top switch statement
*/
if (errorFlag < 0) {
throw new UnsupportedOperationException(String.format("Unknown error %d",
errorFlag));
throw new CameraRuntimeException(CAMERA_ERROR,
String.format("Unknown camera device error %d", errorFlag));
}
}