| | 1 | | using System; |
| | 2 | | using System.Runtime.Serialization; |
| | 3 | |
|
| | 4 | | namespace ICSharpCode.SharpZipLib.GZip |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// GZipException represents exceptions specific to GZip classes and code. |
| | 8 | | /// </summary> |
| | 9 | | [Serializable] |
| | 10 | | public class GZipException : SharpZipBaseException |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// Deserialization constructor |
| | 14 | | /// </summary> |
| | 15 | | /// <param name="info"><see cref="SerializationInfo"/> for this constructor</param> |
| | 16 | | /// <param name="context"><see cref="StreamingContext"/> for this constructor</param> |
| | 17 | | protected GZipException(SerializationInfo info, StreamingContext context) |
| 0 | 18 | | : base(info, context) |
| | 19 | | { |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// Initialise a new instance of <see cref="GZipException" />. |
| | 24 | | /// </summary> |
| 0 | 25 | | public GZipException() |
| | 26 | | { |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initialise a new instance of <see cref="GZipException" /> with its message string. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="message">A <see cref="string"/> that describes the error.</param> |
| | 33 | | public GZipException(string message) |
| 0 | 34 | | : base(message) |
| | 35 | | { |
| 0 | 36 | | } |
| | 37 | |
|
| | 38 | | /// <summary> |
| | 39 | | /// Initialise a new instance of <see cref="GZipException" />. |
| | 40 | | /// </summary> |
| | 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 GZipException(string message, Exception innerException) |
| 0 | 44 | | : base(message, innerException) |
| | 45 | | { |
| 0 | 46 | | } |
| | 47 | | } |
| | 48 | | } |