// Copyright © 2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; namespace CefSharp { /// /// Event arguments to the LoadError event handler set up in IWebBrowser. /// public class LoadErrorEventArgs : EventArgs { /// /// LoadErrorEventArgs /// /// browser /// frame /// error code /// error text /// failed url public LoadErrorEventArgs(IBrowser browser, IFrame frame, CefErrorCode errorCode, string errorText, string failedUrl) { Browser = browser; Frame = frame; ErrorCode = errorCode; ErrorText = errorText; FailedUrl = failedUrl; } /// /// The browser object /// public IBrowser Browser { get; private set; } /// /// The frame that failed to load. /// public IFrame Frame { get; private set; } /// /// The URL that failed to load. /// public string FailedUrl { get; private set; } /// /// The error code. /// public CefErrorCode ErrorCode { get; private set; } /// /// The error text. /// public string ErrorText { get; private set; } } }