-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathSimpleError.cs
More file actions
37 lines (31 loc) · 1.13 KB
/
Copy pathSimpleError.cs
File metadata and controls
37 lines (31 loc) · 1.13 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
namespace Exceptionless.Models.Data {
public class SimpleError : SimpleInnerError {
public SimpleError() {
Modules = new ModuleCollection();
}
/// <summary>
/// Any modules that were loaded / referenced when the error occurred.
/// </summary>
public ModuleCollection Modules { get; set; }
protected bool Equals(SimpleError 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((SimpleError)obj);
}
public override int GetHashCode() {
unchecked {
return (base.GetHashCode() * 397) ^ (Modules != null ? Modules.GetCollectionHashCode() : 0);
}
}
public static class KnownDataKeys {
public const string ExtraProperties = "@ext";
}
}
}