| | | 1 | | using System; |
| | | 2 | | using System.Runtime.Serialization; |
| | | 3 | | |
| | | 4 | | namespace ICSharpCode.SharpZipLib |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// SharpZipBaseException is the base exception class for SharpZipLib. |
| | | 8 | | /// All library exceptions are derived from this. |
| | | 9 | | /// </summary> |
| | | 10 | | /// <remarks>NOTE: Not all exceptions thrown will be derived from this class. |
| | | 11 | | /// A variety of other exceptions are possible for example <see cref="ArgumentNullException"></see></remarks> |
| | | 12 | | [Serializable] |
| | | 13 | | public class SharpZipBaseException : Exception |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Deserialization constructor |
| | | 17 | | /// </summary> |
| | | 18 | | /// <param name="info"><see cref="System.Runtime.Serialization.SerializationInfo"/> for this constructor</param> |
| | | 19 | | /// <param name="context"><see cref="StreamingContext"/> for this constructor</param> |
| | | 20 | | protected SharpZipBaseException(SerializationInfo info, StreamingContext context) |
| | 0 | 21 | | : base(info, context) |
| | | 22 | | { |
| | 0 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the SharpZipBaseException class. |
| | | 27 | | /// </summary> |
| | 0 | 28 | | public SharpZipBaseException() |
| | | 29 | | { |
| | 0 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of the SharpZipBaseException class with a specified error message. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="message">A message describing the exception.</param> |
| | | 36 | | public SharpZipBaseException(string message) |
| | 15 | 37 | | : base(message) |
| | | 38 | | { |
| | 15 | 39 | | } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Initializes a new instance of the SharpZipBaseException class with a specified |
| | | 43 | | /// error message and a reference to the inner exception that is the cause of this exception. |
| | | 44 | | /// </summary> |
| | | 45 | | /// <param name="message">A message describing the exception.</param> |
| | | 46 | | /// <param name="innerException">The inner exception</param> |
| | | 47 | | public SharpZipBaseException(string message, Exception innerException) |
| | 0 | 48 | | : base(message, innerException) |
| | | 49 | | { |
| | 0 | 50 | | } |
| | | 51 | | } |
| | | 52 | | } |