toRemoteExceptions

fun <T> toRemoteExceptions(inner: () -> T): T(source)

Wraps an operation and converts any thrown exceptions into RemoteException for safe return through an AIDL interface.