ErrnoException.RethrowAsSocketException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Throws a SocketException
with a message based on #getMessage()
and with this
instance as the cause.
[Android.Runtime.Register("rethrowAsSocketException", "()Ljava/net/SocketException;", "", ApiSince=30)]
public Java.Net.SocketException RethrowAsSocketException ();
[<Android.Runtime.Register("rethrowAsSocketException", "()Ljava/net/SocketException;", "", ApiSince=30)>]
member this.RethrowAsSocketException : unit -> Java.Net.SocketException
Returns
- Attributes
Remarks
Throws a SocketException
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.rethrowAsSocketException()
.
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.