Skip to content

Commit 3e20f8e

Browse files
committed
Inherit GitVersionException from GitToolsException instead of ApplicationException
1 parent 0667aeb commit 3e20f8e

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
}

src/GitVersionCore/GitVersionException.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@
1212
namespace GitVersion
1313
{
1414
using System;
15-
using System.Runtime.Serialization;
15+
16+
using GitTools;
1617

1718
[Serializable]
18-
public class GitVersionException : ApplicationException
19+
public class GitVersionException : GitToolsException
1920
{
20-
public GitVersionException()
21-
{
22-
}
23-
24-
2521
public GitVersionException(string message)
2622
: base(message)
2723
{
@@ -32,11 +28,5 @@ public GitVersionException(string message, Exception innerException)
3228
: base(message, innerException)
3329
{
3430
}
35-
36-
37-
protected GitVersionException(SerializationInfo info, StreamingContext context)
38-
: base(info, context)
39-
{
40-
}
4131
}
4232
}

0 commit comments

Comments
 (0)