Special function for reading an exception result from the header of a parcel, to be used after receiving the result of a transaction. This will throw the exception for you if it had been written to the Parcel, otherwise return and let you read the normal result data from the Parcel. @see #writeExc
()
| 1413 | * @see #writeNoException |
| 1414 | */ |
| 1415 | public final void readException() { |
| 1416 | int code = readExceptionCode(); |
| 1417 | if (code != 0) { |
| 1418 | String msg = readString(); |
| 1419 | readException(code, msg); |
| 1420 | } |
| 1421 | } |
| 1422 | |
| 1423 | /** |
| 1424 | * Parses the header of a Binder call's response Parcel and |