Language

AdServicesException Constructors

Definition

Overloads

Name Description
AdServicesException(String)

Creates an advertising-services exception with a detail message.

AdServicesException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

AdServicesException(String, Throwable)

Creates an advertising-services exception with a detail message and cause.

AdServicesException(String)

Creates an advertising-services exception with a detail message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)]
public AdServicesException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=34)>]
new Android.AdServices.Exceptions.AdServicesException : string -> Android.AdServices.Exceptions.AdServicesException

Parameters

message
String

The detail message passed to the Java exception base class.

Attributes

Remarks

The supplied message is forwarded to the Java exception constructor.

Applies to

AdServicesException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected AdServicesException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AdServices.Exceptions.AdServicesException : nativeint * Android.Runtime.JniHandleOwnership -> Android.AdServices.Exceptions.AdServicesException

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to

AdServicesException(String, Throwable)

Creates an advertising-services exception with a detail message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)]
public AdServicesException(string? message, Java.Lang.Throwable? e);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Android.AdServices.Exceptions.AdServicesException : string * Java.Lang.Throwable -> Android.AdServices.Exceptions.AdServicesException

Parameters

message
String

The detail message passed to the Java exception base class.

e
Throwable

The Java throwable to retain as the cause of this exception.

Attributes

Remarks

The Java exception constructor receives both the supplied message and the throwable cause.

Applies to