Android Guides | Samples

Android.OS.Parcel.WriteException Method

Special function for writing an exception result at the header of a parcel, to be used when returning an exception from a transaction.

Syntax

[Android.Runtime.Register("writeException", "(Ljava/lang/Exception;)V", "")]
public Void WriteException (Exception e)

See Also

Parameters

e
The Exception to be written.

Remarks

Special function for writing an exception result at the header of a parcel, to be used when returning an exception from a transaction. Note that this currently only supports a few exception types; any other exception will be re-thrown by this function as a RuntimeException (to be caught by the system's last-resort exception handling when dispatching a transaction).

The supported exception types are:

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1