InvalidHeaderException.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. namespace ICSharpCode.SharpZipLib.Tar
  3. {
  4. /// <summary>
  5. /// This exception is used to indicate that there is a problem
  6. /// with a TAR archive header.
  7. /// </summary>
  8. public class InvalidHeaderException : TarException
  9. {
  10. /// <summary>
  11. /// Initialise a new instance of the InvalidHeaderException class.
  12. /// </summary>
  13. public InvalidHeaderException()
  14. {
  15. }
  16. /// <summary>
  17. /// Initialises a new instance of the InvalidHeaderException class with a specified message.
  18. /// </summary>
  19. /// <param name="message">Message describing the exception cause.</param>
  20. public InvalidHeaderException(string message)
  21. : base(message)
  22. {
  23. }
  24. /// <summary>
  25. /// Initialise a new instance of InvalidHeaderException
  26. /// </summary>
  27. /// <param name="message">Message describing the problem.</param>
  28. /// <param name="exception">The exception that is the cause of the current exception.</param>
  29. public InvalidHeaderException(string message, Exception exception)
  30. : base(message, exception)
  31. {
  32. }
  33. }
  34. }