Share via


AppFunctionException.ErrorCategory Property

Definition

Returns the error category.

public Android.App.AppFunctions.AppFunctionErrorCategory ErrorCategory { [Android.Runtime.Register("getErrorCategory", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getErrorCategory", "()I", "", ApiSince=36)>]
member this.ErrorCategory : Android.App.AppFunctions.AppFunctionErrorCategory

Property Value

Attributes

Remarks

Returns the error category.

This method categorizes errors based on their underlying cause, allowing developers to implement targeted error handling and provide more informative error messages to users. It maps ranges of error codes to specific error categories.

This method returns ERROR_CATEGORY_UNKNOWN if the error code does not belong to any error category.

See ErrorCategory for a complete list of error categories and their corresponding error code ranges.

Java documentation for android.app.appfunctions.AppFunctionException.getErrorCategory().

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