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

Commit 6e15e1c7 authored by Yi Jiang's avatar Yi Jiang
Browse files

Do not use OutOfResourcesException for general errors

SurfaceSession#nativeCreate() throws OutOfResourcesException for general
errors on the native side during creation, which is unclear. This
change throws IllegalStateException with the error string instead.

Test: presubmit
Flag: EXEMPT Small refactor
Bug: 436479192

Change-Id: Id568d09a1d5fbd0b3fd16a94349bbb39a6e942ae
parent 19908f58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment