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