SharpZipBaseException.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. namespace ICSharpCode.SharpZipLib
  3. {
  4. /// <summary>
  5. /// SharpZipBaseException is the base exception class for SharpZipLib.
  6. /// All library exceptions are derived from this.
  7. /// </summary>
  8. /// <remarks>NOTE: Not all exceptions thrown will be derived from this class.
  9. /// A variety of other exceptions are possible for example <see cref="ArgumentNullException"></see></remarks>
  10. public class SharpZipBaseException : Exception
  11. {
  12. /// <summary>
  13. /// Initializes a new instance of the SharpZipBaseException class.
  14. /// </summary>
  15. public SharpZipBaseException()
  16. {
  17. }
  18. /// <summary>
  19. /// Initializes a new instance of the SharpZipBaseException class with a specified error message.
  20. /// </summary>
  21. /// <param name="message">A message describing the exception.</param>
  22. public SharpZipBaseException(string message)
  23. : base(message)
  24. {
  25. }
  26. /// <summary>
  27. /// Initializes a new instance of the SharpZipBaseException class with a specified
  28. /// error message and a reference to the inner exception that is the cause of this exception.
  29. /// </summary>
  30. /// <param name="message">A message describing the exception.</param>
  31. /// <param name="innerException">The inner exception</param>
  32. public SharpZipBaseException(string message, Exception innerException)
  33. : base(message, innerException)
  34. {
  35. }
  36. }
  37. }