Freigeben über


Parcel.ReadException Method

Definition

Overloads

ReadException()

Special function for reading an exception result from the header of a parcel, to be used after receiving the result of a transaction.

ReadException(Int32, String)

Throw an exception with the given message.

ReadException()

Special function for reading an exception result from the header of a parcel, to be used after receiving the result of a transaction.

[Android.Runtime.Register("readException", "()V", "")]
public void ReadException ();
[<Android.Runtime.Register("readException", "()V", "")>]
member this.ReadException : unit -> unit
Attributes

Remarks

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.

Java documentation for android.os.Parcel.readException().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

ReadException(Int32, String)

Throw an exception with the given message.

[Android.Runtime.Register("readException", "(ILjava/lang/String;)V", "")]
public void ReadException (int code, string? msg);
[<Android.Runtime.Register("readException", "(ILjava/lang/String;)V", "")>]
member this.ReadException : int * string -> unit

Parameters

code
Int32

Used to determine which exception class to throw.

msg
String

The exception message.

Attributes

Remarks

Throw an exception with the given message. Not intended for use outside the Parcel class.

Java documentation for android.os.Parcel.readException(int, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to