Freigeben über


ErrnoException.RethrowAsIOException Method

Definition

Throws an IOException with a message based on #getMessage() and with this instance as the cause.

[Android.Runtime.Register("rethrowAsIOException", "()Ljava/io/IOException;", "", ApiSince=30)]
public Java.IO.IOException RethrowAsIOException ();
[<Android.Runtime.Register("rethrowAsIOException", "()Ljava/io/IOException;", "", ApiSince=30)>]
member this.RethrowAsIOException : unit -> Java.IO.IOException

Returns

Attributes

Remarks

Throws an IOException with a message based on #getMessage() and with this instance as the cause.

This method always terminates by throwing the exception. Callers can write throw e.rethrowAsIOException() to make that clear to the compiler.

Java documentation for android.system.ErrnoException.rethrowAsIOException().

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