private void HandleUnobservedException(global::System.Exception ex) { if (ex == null) { return; } this.EventLog .WriteEntry(string.Format("Unhandled exception:{0}{0}{1}", Environment.NewLine, ex.GetBaseException() ?? ex), EventLogEntryType.Error); }
private static global::net.sf.jni4net.utils.JniHandle GetBaseException2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Lsystem/Exception; // ()LSystem/Exception; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::System.Exception @__real = global::net.sf.jni4net.utils.Convertor.FullJ2C <global::System.Exception>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.FullC2J <global::System.Exception>(@__env, @__real.GetBaseException()); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }