Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Package: OnError trigger sample #414

@ryanisgrig

Description

@ryanisgrig

Provide a packaged OnError trigger that implements the most common functionality users have in their catch-all exception handling: logging to telemetry, sending a trace activity, and sending a friendly catch-all message to end users. If used on the root dialog, this will catch all exceptions instead of the default OnTurnError handler. These can be added on child dialogs, providing greater flexibility to error handling based on where it is raised.

Sample Microsoft.OnError dialog to replace the default OnTurnError method

image

Log telemetry with the TelemetryTrackEvent action

image
image
Users can use the TelemetryTrackEvent action and provide the exception message that is available as an adaptive expression.

Send a trace activity

Sending a Microsoft.TraceActivity action provides greater context to the end user than the exception message in the default OnTurnError handler.

Send a response

Sending an LG formatted response provides greater flexibility than using a catch-all exception message to end users in the default OnTurnError handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA request for new functionality or an enhancement to an existing one.needs-triageThe issue has just been created and it has not been reviewed by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions