Contents

CustomAppIntentErrorConvertible

A type that the system automatically converts to an app intent error.

Declaration

protocol CustomAppIntentErrorConvertible

Overview

Conform your custom type to this protocol when you need full control over the AppIntentError that the system produces — including the error kind and localized description. When you throw a conforming error from a method such as perform() or entities(for:), the framework reads the appIntentError property and uses it directly.

If an error conforms to both CustomLocalizedStringResourceConvertible and CustomAppIntentErrorConvertible, the system uses only CustomAppIntentErrorConvertible.

Topics

Instance Properties

See Also

Errors