Skip to content

Commit cb09823

Browse files
[Remove] obsolete Exception.Exception(SerializationInfo, StreamingContext) method
1 parent 388afbc commit cb09823

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

VCD-Generator/Exceptions/InvalidRequirementsFormatException.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
namespace VCD.Generator
2222
{
2323
using System;
24-
using System.Runtime.Serialization;
2524

2625
/// <summary>
2726
/// The <see cref="InvalidRequirementsFormatException"/> is thrown when the requirements data is in invalid format
@@ -62,19 +61,5 @@ public InvalidRequirementsFormatException(string message, Exception inner)
6261
: base(message, inner)
6362
{
6463
}
65-
66-
/// <summary>
67-
/// Initializes a new instance of the <see cref="InvalidRequirementsFormatException"/> class
68-
/// </summary>
69-
/// <param name="info">
70-
/// An instance of <see cref="SerializationInfo"/>
71-
/// </param>
72-
/// <param name="context">
73-
/// An instance of <see cref="StreamingContext"/>
74-
/// </param>
75-
protected InvalidRequirementsFormatException(SerializationInfo info, StreamingContext context)
76-
: base(info, context)
77-
{
78-
}
7964
}
8065
}

VCD-Generator/Exceptions/SheetNotFoundException.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
namespace VCD.Generator
2222
{
2323
using System;
24-
using System.Runtime.Serialization;
25-
24+
2625
/// <summary>
2726
/// The <see cref="SheetNotFoundException"/> is thrown when the sheet with a specific name
2827
/// does not exist in the requirements spreadsheet
@@ -63,19 +62,5 @@ public SheetNotFoundException(string message, Exception inner)
6362
: base(message, inner)
6463
{
6564
}
66-
67-
/// <summary>
68-
/// Initializes a new instance of the <see cref="SheetNotFoundException"/> class
69-
/// </summary>
70-
/// <param name="info">
71-
/// An instance of <see cref="SerializationInfo"/>
72-
/// </param>
73-
/// <param name="context">
74-
/// An instance of <see cref="StreamingContext"/>
75-
/// </param>
76-
protected SheetNotFoundException(SerializationInfo info, StreamingContext context)
77-
: base(info, context)
78-
{
79-
}
8065
}
8166
}

0 commit comments

Comments
 (0)