ZipException.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace ICSharpCode.SharpZipLib.Zip
  4. {
  5. /// <summary>
  6. /// ZipException represents exceptions specific to Zip classes and code.
  7. /// </summary>
  8. [Serializable]
  9. public class ZipException : SharpZipBaseException
  10. {
  11. /// <summary>
  12. /// Initialise a new instance of <see cref="ZipException" />.
  13. /// </summary>
  14. public ZipException()
  15. {
  16. }
  17. /// <summary>
  18. /// Initialise a new instance of <see cref="ZipException" /> with its message string.
  19. /// </summary>
  20. /// <param name="message">A <see cref="string"/> that describes the error.</param>
  21. public ZipException(string message)
  22. : base(message)
  23. {
  24. }
  25. /// <summary>
  26. /// Initialise a new instance of <see cref="ZipException" />.
  27. /// </summary>
  28. /// <param name="message">A <see cref="string"/> that describes the error.</param>
  29. /// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param>
  30. public ZipException(string message, Exception innerException)
  31. : base(message, innerException)
  32. {
  33. }
  34. /// <summary>
  35. /// Initializes a new instance of the ZipException class with serialized data.
  36. /// </summary>
  37. /// <param name="info">
  38. /// The System.Runtime.Serialization.SerializationInfo that holds the serialized
  39. /// object data about the exception being thrown.
  40. /// </param>
  41. /// <param name="context">
  42. /// The System.Runtime.Serialization.StreamingContext that contains contextual information
  43. /// about the source or destination.
  44. /// </param>
  45. protected ZipException(SerializationInfo info, StreamingContext context)
  46. : base(info, context)
  47. {
  48. }
  49. }
  50. }