# Print output for @column tags ?>
public
class
RemoteException
extends AndroidException
java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | android.util.AndroidException | |||
↳ | android.os.RemoteException |
Parent exception for all Binder remote-invocation errors
Public constructors | |
---|---|
RemoteException()
|
|
RemoteException(String message)
|
Public methods | |
---|---|
RuntimeException
|
rethrowAsRuntimeException()
Rethrow this as an unchecked runtime exception. |
RuntimeException
|
rethrowFromSystemServer()
Rethrow this exception when we know it came from the system server. |
Inherited methods | |
---|---|
public RemoteException ()
public RuntimeException rethrowAsRuntimeException ()
Rethrow this as an unchecked runtime exception.
Apps making calls into other processes may end up persisting internal 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.
Returns | |
---|---|
RuntimeException |
This value cannot be null . |
Throws | |
---|---|
|
java.lang.RuntimeException |
public RuntimeException rethrowFromSystemServer ()
Rethrow this exception when we know it came from the system server. This
gives us an opportunity to throw a nice clean
DeadSystemException
signal to avoid spamming logs with
misleading stack traces.
Apps making calls into the system server may end up persisting internal 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.
Returns | |
---|---|
RuntimeException |
This value cannot be null . |
Throws | |
---|---|
|
java.lang.RuntimeException |