Share via


ConnectException Constructors

Definition

Overloads

ConnectException()

Construct a new ConnectException with no detailed message.

ConnectException(String)

Constructs a new ConnectException with the specified detail message as to why the connect error occurred.

ConnectException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ConnectException()

Construct a new ConnectException with no detailed message.

[Android.Runtime.Register(".ctor", "()V", "")]
public ConnectException ();
Attributes

Remarks

Construct a new ConnectException with no detailed message.

Java documentation for java.net.ConnectException.ConnectException().

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

ConnectException(String)

Constructs a new ConnectException with the specified detail message as to why the connect error occurred.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public ConnectException (string? msg);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Net.ConnectException : string -> Java.Net.ConnectException

Parameters

msg
String

the detail message

Attributes

Remarks

Constructs a new ConnectException with the specified detail message as to why the connect error occurred. A detail message is a String that gives a specific description of this error.

Java documentation for java.net.ConnectException.ConnectException(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

ConnectException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ConnectException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.ConnectException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.ConnectException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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