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

This commit is contained in:
Eino-Ville Talvala
2015-06-17 18:31:43 +00:00
committed by Android (Google) Code Review

View File

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