public CefUncaughtExceptionEventArgs(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { this.browser = browser; this.frame = frame; this.context = context; this.exception = exception; this.stackTrace = stackTrace; }
protected internal unsafe override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { _implementation.OnUncaughtException(browser, frame, context, exception, stackTrace); }
protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { base.OnUncaughtException(browser, frame, context, exception, stackTrace); System.Collections.Generic.List <string> data = new System.Collections.Generic.List <string>(); data.Add(string.Format("Url: {0}", frame.Url)); data.Add(string.Format("ScriptResourceName: {0}", exception.ScriptResourceName)); data.Add(string.Format("Message: {0}", exception.Message)); data.Add(string.Format("LineNumber: {0}", exception.LineNumber)); data.Add(string.Format("SourceLine: {0}", exception.SourceLine)); data.Add(string.Format("StartColumn: {0}", exception.StartColumn)); data.Add(string.Format("EndColumn: {0}", exception.EndColumn)); System.Windows.Forms.MessageBox.Show(string.Join(Environment.NewLine, data)); }
protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { Log.Warn("RenderProcessHandler.OnUncaughtException( browser: {0}, frame: {1}, exception: {2} )", browser.Identifier, frame.Identifier, "\"" + exception.Message + "\" at line " + exception.LineNumber + " in script \"" + exception.ScriptResourceName + "\""); base.OnUncaughtException(browser, frame, context, exception, stackTrace); }
protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { _context.OnUncaughtException(browser, frame, context, exception, stackTrace); }
/// <summary> /// Called for global uncaught exceptions in a frame. Execution of this /// callback is disabled by default. To enable set /// CefSettings.uncaught_exception_stack_size > 0. /// </summary> /// <param name="browser"></param> /// <param name="frame"></param> /// <param name="context"></param> /// <param name="exception"></param> /// <param name="stackTrace"></param> protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { if (exception == null) { throw new ArgumentNullException("exception"); } Logger.Error(string.Format("Unhandled exception: {0}", JsonConvert.SerializeObject(exception))); }
/// <summary> /// Called for global uncaught exceptions in a frame. Execution of this /// callback is disabled by default. To enable set /// CefSettings.uncaught_exception_stack_size > 0. /// </summary> /// <param name="browser"></param> /// <param name="frame"></param> /// <param name="context"></param> /// <param name="exception"></param> /// <param name="stackTrace"></param> protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { if (exception == null) { throw new ArgumentNullException("exception"); } GeneralLog.Error("Render process unhandled exception: " + exception.Message); }
protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { Console.WriteLine($"BrowserException: Line: {exception.LineNumber}, Col: {exception.StartColumn}, Message: {exception.Message} \nSource: {exception.SourceLine} \nStacktrace:{stackTrace.ToString()}"); }
internal void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { var handler = this.UncaughtException; if (handler != null) { handler(this, new CefUncaughtExceptionEventArgs(browser, frame, context, exception, stackTrace)); } }
public void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { _application.OnUncaughtException(new CefUncaughtExceptionEventArgs(browser, frame, context, exception, stackTrace)); }
protected override void OnUncaughtException(CefBrowser browser, CefFrame frame, CefV8Context context, CefV8Exception exception, CefV8StackTrace stackTrace) { Logger.Info("UncaughtException in Renderer Browser {0} Frame {1}: {2}", browser != null ? browser.Identifier : -1, frame != null ? frame.Identifier : -1, exception != null ? exception.Message : string.Empty); base.OnUncaughtException(browser, frame, context, exception, stackTrace); }