AppSearchException Constructors
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.
Overloads
| Name | Description |
|---|---|
| AppSearchException(Int32) |
Initializes an |
| AppSearchException(Int32, String) |
Initializes an |
| AppSearchException(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
| AppSearchException(Int32, String, Throwable) |
Initializes an |
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
Initializes an AppSearchException with no message.
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
Initializes an AppSearchException with a result code and message.
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)
Creates a managed instance that represents an existing Java object.
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
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
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
Initializes an AppSearchException with a result code, message and cause.
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.