AIExtensionsContainerDesktop.RegisterAIExceptionHandler(AIExtensionsContainer, IAIExceptionHandler) Method
Registers an exception handler.
Namespace: DevExpress.AIIntegration
Assembly: DevExpress.AIIntegration.Desktop.v25.1.dll
NuGet Package: DevExpress.AIIntegration.Desktop
Declaration
public static void RegisterAIExceptionHandler(
this AIExtensionsContainer container,
IAIExceptionHandler handler
)
Parameters
| Name | Type | Description |
|---|---|---|
| container | AIExtensionsContainer | The container that holds the registered AI client. |
| handler | DevExpress.AIIntegration.IAIExceptionHandler | The exception handler. |
Remarks
Use the RegisterAIExceptionHandler method to register the exception handler in the AIExtensionsContainerDefault container:
AIExtensionsContainerDesktop.Default.RegisterAIExceptionHandler(new AIExceptionHandler(new MyFavoriteLogger()));
Tip
Refer to the following help topic for more information: AI Integration.
See Also