Merge "Improve docs about exceptions through Binder." into oc-mr1-dev

am: 6e3af279ab

Change-Id: Ia69e8ed7db5210284fbfea95be2a2b0a7c6e3052
This commit is contained in:
Dianne Hackborn
2017-08-02 17:59:17 +00:00
committed by android-build-merger
2 changed files with 6 additions and 0 deletions

View File

@@ -441,6 +441,11 @@ public class Binder implements IBinder {
*
* <p>If you want to call this, call transact().
*
* <p>Implementations that are returning a result should generally use
* {@link Parcel#writeNoException() Parcel.writeNoException} and
* {@link Parcel#writeException(Exception) Parcel.writeException} to propagate
* exceptions back to the caller.</p>
*
* @param code The action to perform. This should
* be a number between {@link #FIRST_CALL_TRANSACTION} and
* {@link #LAST_CALL_TRANSACTION}.

View File

@@ -1782,6 +1782,7 @@ public final class Parcel {
* <li>{@link IllegalStateException}
* <li>{@link NullPointerException}
* <li>{@link SecurityException}
* <li>{@link UnsupportedOperationException}
* <li>{@link NetworkOnMainThreadException}
* </ul>
*