Skip to content

Commit 881fa05

Browse files
committed
Consistency - Exceptions
* No functional or API changes * All exception classes now have conssitent variable names and XML comments
1 parent 75bbc12 commit 881fa05

5 files changed

Lines changed: 38 additions & 41 deletions

File tree

ICSharpCode.SharpZipLib/BZip2/BZip2Exception.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@
44
namespace ICSharpCode.SharpZipLib.BZip2
55
{
66
/// <summary>
7-
/// BZip2Exception represents exceptions specific to Bzip2 algorithm
7+
/// BZip2Exception represents exceptions specific to BZip2 classes and code.
88
/// </summary>
99
[Serializable]
1010
public class BZip2Exception : SharpZipBaseException
1111
{
12-
1312
/// <summary>
1413
/// Deserialization constructor
1514
/// </summary>
1615
/// <param name="info"><see cref="SerializationInfo"/> for this constructor</param>
1716
/// <param name="context"><see cref="StreamingContext"/> for this constructor</param>
1817
protected BZip2Exception(SerializationInfo info, StreamingContext context)
1918
: base(info, context)
20-
2119
{
2220
}
21+
2322
/// <summary>
24-
/// Initialise a new instance of BZip2Exception.
23+
/// Initialise a new instance of <see cref="BZip2Exception" />.
2524
/// </summary>
2625
public BZip2Exception()
2726
{
2827
}
2928

3029
/// <summary>
31-
/// Initialise a new instance of BZip2Exception with its message set to message.
30+
/// Initialise a new instance of <see cref="BZip2Exception" /> with its message string.
3231
/// </summary>
33-
/// <param name="message">The message describing the error.</param>
34-
public BZip2Exception(string message) : base(message)
32+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
33+
public BZip2Exception(string message)
34+
: base(message)
3535
{
3636
}
3737

3838
/// <summary>
39-
/// Initialise an instance of BZip2Exception
39+
/// Initialise a new instance of <see cref="BZip2Exception" />.
4040
/// </summary>
41-
/// <param name="message">A message describing the error.</param>
42-
/// <param name="exception">The exception that is the cause of the current exception.</param>
43-
public BZip2Exception(string message, Exception exception)
44-
: base(message, exception)
41+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
42+
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
43+
public BZip2Exception(string message, Exception innerException)
44+
: base(message, innerException)
4545
{
4646
}
4747
}

ICSharpCode.SharpZipLib/GZip/GZipException.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace ICSharpCode.SharpZipLib.GZip
55
{
66
/// <summary>
7-
/// GZipException represents a Gzip specific exception
7+
/// GZipException represents exceptions specific to GZip classes and code.
88
/// </summary>
99
[Serializable]
1010
public class GZipException : SharpZipBaseException
@@ -16,19 +16,18 @@ public class GZipException : SharpZipBaseException
1616
/// <param name="context"><see cref="StreamingContext"/> for this constructor</param>
1717
protected GZipException(SerializationInfo info, StreamingContext context)
1818
: base(info, context)
19-
2019
{
2120
}
2221

2322
/// <summary>
24-
/// Initialise a new instance of GZipException
23+
/// Initialise a new instance of <see cref="GZipException" />.
2524
/// </summary>
2625
public GZipException()
2726
{
2827
}
2928

3029
/// <summary>
31-
/// Initialise a new instance of GZipException with its message string.
30+
/// Initialise a new instance of <see cref="GZipException" /> with its message string.
3231
/// </summary>
3332
/// <param name="message">A <see cref="string"/> that describes the error.</param>
3433
public GZipException(string message)
@@ -37,7 +36,7 @@ public GZipException(string message)
3736
}
3837

3938
/// <summary>
40-
/// Initialise a new instance of <see cref="GZipException"></see>.
39+
/// Initialise a new instance of <see cref="GZipException" />.
4140
/// </summary>
4241
/// <param name="message">A <see cref="string"/> that describes the error.</param>
4342
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>

ICSharpCode.SharpZipLib/Lzw/LzwException.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
namespace ICSharpCode.SharpZipLib.Lzw
55
{
66
/// <summary>
7-
/// LzwException represents a LZW specific exception
7+
/// LzwException represents exceptions specific to LZW classes and code.
88
/// </summary>
99
[Serializable]
1010
public class LzwException : SharpZipBaseException
1111
{
12-
1312
/// <summary>
1413
/// Deserialization constructor
1514
/// </summary>
@@ -21,14 +20,14 @@ protected LzwException(SerializationInfo info, StreamingContext context)
2120
}
2221

2322
/// <summary>
24-
/// Initialise a new instance of LzwException
23+
/// Initialise a new instance of <see cref="LzwException" />.
2524
/// </summary>
2625
public LzwException()
2726
{
2827
}
2928

3029
/// <summary>
31-
/// Initialise a new instance of LzwException with its message string.
30+
/// Initialise a new instance of <see cref="LzwException" /> with its message string.
3231
/// </summary>
3332
/// <param name="message">A <see cref="string"/> that describes the error.</param>
3433
public LzwException(string message)
@@ -37,7 +36,7 @@ public LzwException(string message)
3736
}
3837

3938
/// <summary>
40-
/// Initialise a new instance of <see cref="LzwException"></see>.
39+
/// Initialise a new instance of <see cref="LzwException" />.
4140
/// </summary>
4241
/// <param name="message">A <see cref="string"/> that describes the error.</param>
4342
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>

ICSharpCode.SharpZipLib/Tar/TarException.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace ICSharpCode.SharpZipLib.Tar
55
{
66
/// <summary>
7-
/// TarExceptions are used for exceptions specific to tar classes and code.
7+
/// TarException represents exceptions specific to Tar classes and code.
88
/// </summary>
99
[Serializable]
1010
public class TarException : SharpZipBaseException
@@ -16,33 +16,32 @@ public class TarException : SharpZipBaseException
1616
/// <param name="context"><see cref="StreamingContext"/> for this constructor</param>
1717
protected TarException(SerializationInfo info, StreamingContext context)
1818
: base(info, context)
19-
2019
{
2120
}
2221

2322
/// <summary>
24-
/// Initialises a new instance of the TarException class.
23+
/// Initialise a new instance of <see cref="TarException" />.
2524
/// </summary>
2625
public TarException()
2726
{
2827
}
2928

3029
/// <summary>
31-
/// Initialises a new instance of the TarException class with a specified message.
30+
/// Initialise a new instance of <see cref="TarException" /> with its message string.
3231
/// </summary>
33-
/// <param name="message">The message that describes the error.</param>
32+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
3433
public TarException(string message)
3534
: base(message)
3635
{
3736
}
3837

3938
/// <summary>
40-
///
39+
/// Initialise a new instance of <see cref="TarException" />.
4140
/// </summary>
42-
/// <param name="message">A message describing the error.</param>
43-
/// <param name="exception">The exception that is the cause of the current exception.</param>
44-
public TarException(string message, Exception exception)
45-
: base(message, exception)
41+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
42+
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
43+
public TarException(string message, Exception innerException)
44+
: base(message, innerException)
4645
{
4746
}
4847
}

ICSharpCode.SharpZipLib/Zip/ZipException.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace ICSharpCode.SharpZipLib.Zip
55
{
66
/// <summary>
7-
/// Represents exception conditions specific to Zip archive handling
7+
/// ZipException represents exceptions specific to Zip classes and code.
88
/// </summary>
99
[Serializable]
1010
public class ZipException : SharpZipBaseException
@@ -20,28 +20,28 @@ protected ZipException(SerializationInfo info, StreamingContext context)
2020
}
2121

2222
/// <summary>
23-
/// Initializes a new instance of the ZipException class.
23+
/// Initialise a new instance of <see cref="ZipException" />.
2424
/// </summary>
2525
public ZipException()
2626
{
2727
}
2828

2929
/// <summary>
30-
/// Initializes a new instance of the ZipException class with a specified error message.
30+
/// Initialise a new instance of <see cref="ZipException" /> with its message string.
3131
/// </summary>
32-
/// <param name="message">The error message that explains the reason for the exception.</param>
32+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
3333
public ZipException(string message)
3434
: base(message)
3535
{
3636
}
3737

3838
/// <summary>
39-
/// Initialise a new instance of ZipException.
39+
/// Initialise a new instance of <see cref="ZipException" />.
4040
/// </summary>
41-
/// <param name="message">A message describing the error.</param>
42-
/// <param name="exception">The exception that is the cause of the current exception.</param>
43-
public ZipException(string message, Exception exception)
44-
: base(message, exception)
41+
/// <param name="message">A <see cref="string"/> that describes the error.</param>
42+
/// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
43+
public ZipException(string message, Exception innerException)
44+
: base(message, innerException)
4545
{
4646
}
4747
}

0 commit comments

Comments
 (0)