Merge "Improve docs about exceptions through Binder." into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6e3af279ab
@@ -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}.
|
||||
|
||||
@@ -1782,6 +1782,7 @@ public final class Parcel {
|
||||
* <li>{@link IllegalStateException}
|
||||
* <li>{@link NullPointerException}
|
||||
* <li>{@link SecurityException}
|
||||
* <li>{@link UnsupportedOperationException}
|
||||
* <li>{@link NetworkOnMainThreadException}
|
||||
* </ul>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user