次の方法で共有


ParcelFileDescriptor.CheckError Method

Definition

Detect and throw if the other end of a pipe or socket pair encountered an error or crashed.

[Android.Runtime.Register("checkError", "()V", "GetCheckErrorHandler")]
public virtual void CheckError ();
[<Android.Runtime.Register("checkError", "()V", "GetCheckErrorHandler")>]
abstract member CheckError : unit -> unit
override this.CheckError : unit -> unit
Attributes

Exceptions

for normal errors.

if the remote side called DetachFd(). Once detached, the remote side is unable to communicate any errors through CloseWithError(String).

Remarks

Detect and throw if the other end of a pipe or socket pair encountered an error or crashed. This allows a reader to distinguish between a valid EOF and an error/crash.

If this ParcelFileDescriptor is unable to detect remote errors, it will return silently.

Java documentation for android.os.ParcelFileDescriptor.checkError().

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

See also