Language

HealthConnectException.ErrorCode Property

Definition

Gets the reason for this exception.

public virtual Android.Health.Connect.HealthConnectExceptionErrorReason ErrorCode { [Android.Runtime.Register("getErrorCode", "()I", "GetGetErrorCodeHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getErrorCode", "()I", "GetGetErrorCodeHandler", ApiSince=34)>]
member this.ErrorCode : Android.Health.Connect.HealthConnectExceptionErrorReason

Property Value

One of the HealthConnectExceptionErrorReason values.

Attributes

Remarks

The Java getErrorCode method returns one of the ERROR_* constants of the Java HealthConnectException class. The .NET binding exposes these constants as HealthConnectExceptionErrorReason values.

Applies to