ParcelFileDescriptor.CloseWithError(String) Method

Definition

Close the ParcelFileDescriptor, informing any peer that an error occurred while processing.

[Android.Runtime.Register("closeWithError", "(Ljava/lang/String;)V", "GetCloseWithError_Ljava_lang_String_Handler")]
public virtual void CloseWithError (string? msg);
[<Android.Runtime.Register("closeWithError", "(Ljava/lang/String;)V", "GetCloseWithError_Ljava_lang_String_Handler")>]
abstract member CloseWithError : string -> unit
override this.CloseWithError : string -> unit

Parameters

msg
String

describing the error; must not be null.

Attributes

Exceptions

Remarks

Close the ParcelFileDescriptor, informing any peer that an error occurred while processing. If the creator of this descriptor is not observing errors, it will close normally.

Java documentation for android.os.ParcelFileDescriptor.closeWithError(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