Code Coverage Statistics for Source File
Newtonsoft.Json\Serialization\ErrorEventArgs.cs
Symbol Coverage: 100.00% (4 of 4)
Branch Coverage: 100.00% (5 of 5)
Cyclomatic Complexity Avg: 1.00 Max:1
Code Lines: 4
Symbol Coverage Trend
View:
L | V | Source |
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
||
6 |
namespace Newtonsoft.Json.Serialization |
|
7 |
{ |
|
8 |
/// <summary> |
|
9 |
/// Provides data for the Error event. |
|
10 |
/// </summary> |
|
11 |
public class ErrorEventArgs : EventArgs |
|
12 |
{ |
|
13 |
/// <summary> |
|
14 |
/// Gets the current object the error event is being raised against. |
|
15 |
/// </summary> |
|
16 |
/// <value>The current object the error event is being raised against.</value> |
|
17 |
public object CurrentObject { get; private set; } |
|
18 |
/// <summary> |
|
19 |
/// Gets the error context. |
|
20 |
/// </summary> |
|
21 |
/// <value>The error context.</value> |
|
22 |
public ErrorContext ErrorContext { get; private set; } |
|
23 |
||
24 |
/// <summary> |
|
25 |
/// Initializes a new instance of the <see cref="ErrorEventArgs"/> class. |
|
26 |
/// </summary> |
|
27 |
/// <param name="currentObject">The current object.</param> |
|
28 |
/// <param name="errorContext">The error context.</param> |
|
29 |
21 |
public ErrorEventArgs(object currentObject, ErrorContext errorContext)
|
30 |
{ |
|
31 |
21 |
CurrentObject = currentObject;
|
32 |
21 |
ErrorContext = errorContext;
|
33 |
21 |
}
|
34 |
} |
|
35 |
} |