commit | afd6983bd03a996db6f0bcfb666afd35e8ef9f3d | [log] [tgz] |
---|---|---|
author | Michael Thiessen <mthiesse@chromium.org> | Tue Jan 17 21:29:35 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 17 21:29:35 2023 |
tree | 32090fc31f4004f3e40da8163e6e5a1cfeeb661b | |
parent | cd1854f4de4eeea3c57e31b759a7b63bcb5483c2 [diff] |
Don't throw UndeclaredThrowableException from Service proxies When errors are thrown from invoked methods, due to Java complexities, the errors are wrapped in InvocationTargetExceptions, which when uncaught cause UndeclaredThrowableExceptions to be thrown. Callers of System Services don't expect this, so won't catch these exceptions and will end up crashing. We need to unwrap these exceptions so that the callers receive the exceptions they expect. Bug: 1408061 Change-Id: I5e5484e15622293099db6c9061c3cf854b748770 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4174400 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by: Yaron Friedman <yfriedman@chromium.org> Auto-Submit: Michael Thiessen <mthiesse@chromium.org> Commit-Queue: Yaron Friedman <yfriedman@chromium.org> Cr-Commit-Position: refs/heads/main@{#1093536}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.