Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3e39d16 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Do not throw unexpected runtime exception to app

Use a generic CameraAccessException DEVICE_ERROR exception instead

Bug: 21869917
Change-Id: I73581b817cbdcbb4b876c234f050f725a459a29b
parent dd862aeb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
        }
    }