iOSApplication.UnhandledException
From Xojo Documentation
Event
Called if the app had an exception and did not handle it. If the event is not implemented or the event handler returns False, the application will terminate.
Called if the app had an exception and did not handle it. If the event is not implemented or the event handler returns False, the application will terminate.