// Copyright © 2010-2015 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
{
public LoadErrorEventArgs(IFrame frame, CefErrorCode errorCode, string errorText, string failedUrl)
{
Frame = frame;
ErrorCode = errorCode;
ErrorText = errorText;
FailedUrl = failedUrl;
}
///
/// 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; }
}
}