/// <summary> /// Initializes a new instance of the <see cref="CefUncaughtExceptionEventArgs"/> class. /// </summary> /// <param name="browser">The <see cref="CefBrowser"/> that triggered the event.</param> /// <param name="frame">The <see cref="CefFrame"/> that triggered the event.</param> /// <param name="context">The <see cref="CefV8Context"/> in which the exception occurred.</param> /// <param name="exception">The unhandled V8 exception object.</param> /// <param name="stackTrace">The V8 stack trace.</param> 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; }
/// <summary> /// Returns the stack trace for the currently active context. /// </summary> /// <param name="frameLimit"> /// The maximum number of frames that will be captured. /// </param> public CefV8StackTrace GetCurrent(int frameLimit) { return(CefV8StackTrace.Wrap(CefV8StackTrace.Create, CefNativeApi.cef_v8stack_trace_get_current(frameLimit))); }