-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathError.cs
More file actions
38 lines (32 loc) · 1.16 KB
/
Copy pathError.cs
File metadata and controls
38 lines (32 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace Exceptionless.Models.Data {
public class Error : InnerError {
public Error() {
Modules = new ModuleCollection();
}
/// <summary>
/// Any modules that were loaded / referenced when the error occurred.
/// </summary>
public ModuleCollection Modules { get; set; }
public static class KnownDataKeys {
public const string ExtraProperties = "@ext";
public const string TargetInfo = "@target";
}
protected bool Equals(Error other) {
return base.Equals(other) && Modules.CollectionEquals(other.Modules);
}
public override bool Equals(object obj) {
if (ReferenceEquals(null, obj))
return false;
if (ReferenceEquals(this, obj))
return true;
if (obj.GetType() != this.GetType())
return false;
return Equals((Error)obj);
}
public override int GetHashCode() {
unchecked {
return (base.GetHashCode() * 397) ^ (Modules != null ? Modules.GetCollectionHashCode() : 0);
}
}
}
}