Share via


ProtocolException Constructors

Definition

Overloads

ProtocolException()

Creates a new ProtocolException with a null detail message.

ProtocolException(String)

Creates a new ProtocolException with the specified detail message.

ProtocolException(IntPtr, JniHandleOwnership)

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

ProtocolException(String, Throwable)

Creates a new ProtocolException with the specified detail message and cause.

ProtocolException()

Creates a new ProtocolException with a null detail message.

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

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

ProtocolException(String)

Creates a new ProtocolException with the specified detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public ProtocolException (string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Org.Apache.Http.ProtocolException : string -> Org.Apache.Http.ProtocolException

Parameters

message
String
Attributes

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

ProtocolException(IntPtr, JniHandleOwnership)

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

protected ProtocolException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.ProtocolException : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.ProtocolException

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

ProtocolException(String, Throwable)

Creates a new ProtocolException with the specified detail message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public ProtocolException (string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Org.Apache.Http.ProtocolException : string * Java.Lang.Throwable -> Org.Apache.Http.ProtocolException

Parameters

message
String
cause
Throwable
Attributes

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