Android.OS.ParcelFileDescriptor.CheckError Method
Detect and throw if the other end of a pipe or socket pair encountered an error or crashed.

Syntax

[Android.Runtime.Register("checkError", "()V", "GetCheckErrorHandler")]
public virtual void CheckError ()

See Also

ParcelFileDescriptor.CanDetectErrors

Exceptions

TypeReason
Java.IO.IOExceptionfor normal errors.
!:NoType:android/os/ParcelFileDescriptor$FileDescriptorDetachedException;Href=../../../reference/android/os/ParcelFileDescriptor.FileDescriptorDetachedException.htmlif the remote side called ParcelFileDescriptor.DetachFd. Once detached, the remote side is unable to communicate any errors through ParcelFileDescriptor.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.

[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