Share via


AppSearchException Constructors

Definition

Overloads

AppSearchException(Int32)

Initializes an AppSearchException with no message.

AppSearchException(Int32, String)

Initializes an AppSearchException with a result code and message.

AppSearchException(IntPtr, JniHandleOwnership)
AppSearchException(Int32, String, Throwable)

Initializes an AppSearchException with a result code, message and cause.

AppSearchException(Int32)

Initializes an AppSearchException with no message.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=31)]
public AppSearchException (int resultCode);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int -> Android.App.AppSearch.Exceptions.AppSearchException

Parameters

resultCode
Int32

One of the constants documented in AppSearchResult#getResultCode.

Attributes

Remarks

Java documentation for android.app.appsearch.exceptions.AppSearchException.AppSearchException(int).

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

AppSearchException(Int32, String)

Initializes an AppSearchException with a result code and message.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=31)]
public AppSearchException (int resultCode, string? message);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int * string -> Android.App.AppSearch.Exceptions.AppSearchException

Parameters

resultCode
Int32

One of the constants documented in AppSearchResult#getResultCode.

message
String

The detail message (which is saved for later retrieval by the #getMessage() method).

Attributes

Remarks

Java documentation for android.app.appsearch.exceptions.AppSearchException.AppSearchException(int, 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

AppSearchException(IntPtr, JniHandleOwnership)

protected AppSearchException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.AppSearch.Exceptions.AppSearchException : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AppSearch.Exceptions.AppSearchException

Parameters

javaReference
IntPtr

nativeint

Applies to

AppSearchException(Int32, String, Throwable)

Initializes an AppSearchException with a result code, message and cause.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=31)]
public AppSearchException (int resultCode, string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int * string * Java.Lang.Throwable -> Android.App.AppSearch.Exceptions.AppSearchException

Parameters

resultCode
Int32

One of the constants documented in AppSearchResult#getResultCode.

message
String

The detail message (which is saved for later retrieval by the #getMessage() method).

cause
Throwable

The cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Attributes

Remarks

Java documentation for android.app.appsearch.exceptions.AppSearchException.AppSearchException(int, java.lang.String, java.lang.Throwable).

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