我正在使用以下绑定将 Flurry Analytics 集成到我的 Xamarin/MonoTouch iOS 应用程序中: https ://github.com/mono/monotouch-bindings/tree/master/FlurryAnalytics
现在,我想使用 Flurry Analytic 的错误记录:
void LogError (string errorID, string message, NSException exception);
我在我的 AppDelegate 中使用此代码捕获异常:
AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) => { /**/ };
但是,据我所知,Xamarin/MonoTouch 已将所有 NSExceptions 转换为 System.Exception。
System.Exception 可以转换回 NSException 以便我可以在 LogError 例程中使用它吗?
或者是否可以在 Xamarin/MonoTouch 项目中捕获 NSExceptions?