OnDevicePersonalizationException 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 |
|---|---|
| OnDevicePersonalizationException(Int32) |
Creates an exception with the specified error code. |
| OnDevicePersonalizationException(Int32, Throwable) |
Creates an exception with the specified error code and cause. |
| OnDevicePersonalizationException(Int32, String) |
Creates an exception with the specified error code and detail message. |
| OnDevicePersonalizationException(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
| OnDevicePersonalizationException(Int32, String, Throwable) |
Creates an exception with the specified error code, detail message, and cause. |
OnDevicePersonalizationException(Int32)
Creates an exception with the specified error code.
[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=36)]
public OnDevicePersonalizationException(int errorCode);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException : int -> Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException
Parameters
- errorCode
- Int32
Value is one of the following: ERROR_ISOLATED_SERVICE_FAILED; ERROR_PERSONALIZATION_DISABLED; ERROR_ISOLATED_SERVICE_LOADING_FAILED; ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED; ERROR_ISOLATED_SERVICE_TIMEOUT; ERROR_SCHEDULE_TRAINING_FAILED; ERROR_INVALID_TRAINING_MANIFEST; ERROR_INFERENCE_MODEL_NOT_FOUND; ERROR_INFERENCE_FAILED
- 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
OnDevicePersonalizationException(Int32, Throwable)
Creates an exception with the specified error code and cause.
[Android.Runtime.Register(".ctor", "(ILjava/lang/Throwable;)V", "", ApiSince=36)]
public OnDevicePersonalizationException(int errorCode, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/Throwable;)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException : int * Java.Lang.Throwable -> Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException
Parameters
- errorCode
- Int32
Value is one of the following: ERROR_ISOLATED_SERVICE_FAILED; ERROR_PERSONALIZATION_DISABLED; ERROR_ISOLATED_SERVICE_LOADING_FAILED; ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED; ERROR_ISOLATED_SERVICE_TIMEOUT; ERROR_SCHEDULE_TRAINING_FAILED; ERROR_INVALID_TRAINING_MANIFEST; ERROR_INFERENCE_MODEL_NOT_FOUND; ERROR_INFERENCE_FAILED
- cause
- Throwable
The cause of the exception, or null if the cause is unknown.
- 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
OnDevicePersonalizationException(Int32, String)
Creates an exception with the specified error code and detail message.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=36)]
public OnDevicePersonalizationException(int errorCode, string? message);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException : int * string -> Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException
Parameters
- errorCode
- Int32
Value is one of the following: ERROR_ISOLATED_SERVICE_FAILED; ERROR_PERSONALIZATION_DISABLED; ERROR_ISOLATED_SERVICE_LOADING_FAILED; ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED; ERROR_ISOLATED_SERVICE_TIMEOUT; ERROR_SCHEDULE_TRAINING_FAILED; ERROR_INVALID_TRAINING_MANIFEST; ERROR_INFERENCE_MODEL_NOT_FOUND; ERROR_INFERENCE_FAILED
- message
- String
The detail message, or null.
- 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
OnDevicePersonalizationException(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected OnDevicePersonalizationException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException : nativeint * Android.Runtime.JniHandleOwnership -> Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException
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
OnDevicePersonalizationException(Int32, String, Throwable)
Creates an exception with the specified error code, detail message, and cause.
[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=36)]
public OnDevicePersonalizationException(int errorCode, string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=36)>]
new Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException : int * string * Java.Lang.Throwable -> Android.AdServices.OnDevicePersonalization.OnDevicePersonalizationException
Parameters
- errorCode
- Int32
Value is one of the following: ERROR_ISOLATED_SERVICE_FAILED; ERROR_PERSONALIZATION_DISABLED; ERROR_ISOLATED_SERVICE_LOADING_FAILED; ERROR_ISOLATED_SERVICE_MANIFEST_PARSING_FAILED; ERROR_ISOLATED_SERVICE_TIMEOUT; ERROR_SCHEDULE_TRAINING_FAILED; ERROR_INVALID_TRAINING_MANIFEST; ERROR_INFERENCE_MODEL_NOT_FOUND; ERROR_INFERENCE_FAILED
- message
- String
The detail message, or null.
- cause
- Throwable
The cause of the exception, or null if the cause is unknown.
- 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.