Skip to Content
0
Nov 20, 2018 at 11:27 AM

SAP B1 SDK exception handling event

146 Views

I want to use exception handling event to catch all the unexpected exceptions in my SAP B1 SDK application. Does the SDK have any exception handling mechanisms, similar to UnhandledException event from .NET?

In .NET you can catch all unhandled exceptions with following code

AppDomain.CurrentDomain.UnhandledException+=newUnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
//

static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
   //Code
}