summaryrefslogtreecommitdiff
path: root/core/java/android/os/RemoteException.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-11-20 14:47:51 -0800
committerRoshan Pius <rpius@google.com>2019-11-20 14:47:51 -0800
commit866e9111c589923f12aa942e6b45a0fac7397282 (patch)
treeafe0d3041a5fbec2bc6c80f57e16d33b80d5386d /core/java/android/os/RemoteException.java
parenta2baf58e26a6a152310ad9dfffaf1bd9a579ce7b (diff)
RemoteException: Add @throws documentation
Bug: 144792553 Test: Compiles Change-Id: I5a7464c2fe786b8398c5abdf43f62479de62b133
Diffstat (limited to 'core/java/android/os/RemoteException.java')
-rw-r--r--core/java/android/os/RemoteException.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/os/RemoteException.java b/core/java/android/os/RemoteException.java
index 10ef27952df4..98c66d1beaf4 100644
--- a/core/java/android/os/RemoteException.java
+++ b/core/java/android/os/RemoteException.java
@@ -44,6 +44,8 @@ public class RemoteException extends AndroidException {
* state or making security decisions based on the perceived success or
* failure of a call, or any default values returned. For this reason, we
* want to strongly throw when there was trouble with the transaction.
+ *
+ * @throws RuntimeException
*/
@NonNull
public RuntimeException rethrowAsRuntimeException() {
@@ -60,6 +62,8 @@ public class RemoteException extends AndroidException {
* state or making security decisions based on the perceived success or
* failure of a call, or any default values returned. For this reason, we
* want to strongly throw when there was trouble with the transaction.
+ *
+ * @throws RuntimeException
*/
@NonNull
public RuntimeException rethrowFromSystemServer() {