Skip to content

Commit a90ce42

Browse files
committed
Inherit GitVersionException from GitToolsException instead of ApplicationException
1 parent f906d9a commit a90ce42

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace GitVersion
22
{
33
using System;
4-
using System.Runtime.Serialization;
54

65
[Serializable]
76
public class GitVersionConfigurationException : GitVersionException
@@ -10,11 +9,5 @@ public GitVersionConfigurationException(string msg)
109
: base(msg)
1110
{
1211
}
13-
14-
15-
protected GitVersionConfigurationException(SerializationInfo info, StreamingContext context)
16-
: base(info, context)
17-
{
18-
}
1912
}
2013
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace GitVersion
22
{
33
using System;
4-
using System.Runtime.Serialization;
54

65
[Serializable]
76
public class OldConfigurationException : GitVersionException
@@ -10,11 +9,5 @@ public OldConfigurationException(string message)
109
: base(message)
1110
{
1211
}
13-
14-
15-
protected OldConfigurationException(SerializationInfo info, StreamingContext context)
16-
: base(info, context)
17-
{
18-
}
1912
}
2013
}
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
namespace GitVersion
22
{
33
using System;
4-
using System.Runtime.Serialization;
4+
5+
using GitTools;
56

67
[Serializable]
7-
public class GitVersionException : ApplicationException
8+
public class GitVersionException : GitToolsException
89
{
9-
public GitVersionException()
10-
{
11-
}
12-
13-
1410
public GitVersionException(string message)
1511
: base(message)
1612
{
@@ -21,11 +17,5 @@ public GitVersionException(string message, Exception innerException)
2117
: base(message, innerException)
2218
{
2319
}
24-
25-
26-
protected GitVersionException(SerializationInfo info, StreamingContext context)
27-
: base(info, context)
28-
{
29-
}
3020
}
3121
}

0 commit comments

Comments
 (0)