Files
cefsharp/CefSharp/DevTools/DevToolsErrorEventArgs.cs
T
Alex Maitland 0804a404c7 DevTools Client - Add Event error handling
- New event that is raised when an exception occurs during converting a response to JSON
- Test cleanup
- New unit test to validate IEventProxy has been removed from ConcurrentDictionary

Resolves #3787
2021-09-10 14:15:57 +10:00

44 lines
1.2 KiB
C#

// Copyright © 2021 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.DevTools
{
/// <summary>
/// DevToolsErrorEventArgs - Raised when an exception occurs when
/// attempting to raise <see cref="IDevToolsClient.DevToolsEvent"/>
/// </summary>
public class DevToolsErrorEventArgs : EventArgs
{
/// <summary>
/// Event Name
/// </summary>
public string EventName { get; private set; }
/// <summary>
/// Json
/// </summary>
public string Json { get; private set; }
/// <summary>
/// Exception
/// </summary>
public Exception Exception { get; private set; }
/// <summary>
/// DevToolsErrorEventArgs
/// </summary>
/// <param name="eventName">Event Name</param>
/// <param name="json">json</param>
/// <param name="ex">Exception</param>
public DevToolsErrorEventArgs(string eventName, string json, Exception ex)
{
EventName = eventName;
Json = json;
Exception = ex;
}
}
}