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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user