RemoteException: Add @throws documentation

Bug: 144792553
Test: Compiles
Change-Id: I5a7464c2fe786b8398c5abdf43f62479de62b133
This commit is contained in:
Roshan Pius
2019-11-20 14:47:51 -08:00
parent a2baf58e26
commit 866e9111c5

View File

@@ -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() {