Skip to content

Exception Handling

Tanveer Yousuf edited this page Aug 9, 2018 · 2 revisions

Exception Handling Overview

To handle exceptions using DevAccelerate Core is very simple. Firstly, you need to create an instance of the IExceptionManager type and secondly invoke its HandleException method:

try
{
    // Code that can potentially throw an exception
}
catch(Exception ex)
{
    var exceptionManager = DaExceptionManagerFactory.CreateExceptionManager();
    exceptionManager.HandleExpcetion(ex);
}
Clone this wiki locally