-
Notifications
You must be signed in to change notification settings - Fork 0
Exception Handling
Tanveer Yousuf edited this page Aug 9, 2018
·
2 revisions
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);
}