Asynchronous errors can be handled by attaching a specific error handler.

DS Server allows you to attach the unhandledError event to handle those types of errors. You can catch errors directly on the action or use this event to catch all unhandled errors in one function.

The demo is trying to insert a table with an invalid table ID. If no checkbox is checked, the error is unhandled. If the checkbox "Catch errors on action" is checked, the error is directly catched in the action of the function. "Catch unhandled errors" catches all unhandled errors in the "unhandledError" event.

Show Description

This demo uses the ASP.NET Core client libraries of DS Server. The functionality is compatible across all supported platforms.

Version 1.0

No code required.

Next Sample

© 2021 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We documents.