InvalidHeaderException.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // InvalidHeaderException.cs
  2. // Copyright (C) 2001 Mike Krueger
  3. //
  4. // This program is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU General Public License
  6. // as published by the Free Software Foundation; either version 2
  7. // of the License, or (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with this program; if not, write to the Free Software
  16. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. //
  18. // Linking this library statically or dynamically with other modules is
  19. // making a combined work based on this library. Thus, the terms and
  20. // conditions of the GNU General Public License cover the whole
  21. // combination.
  22. //
  23. // As a special exception, the copyright holders of this library give you
  24. // permission to link this library with independent modules to produce an
  25. // executable, regardless of the license terms of these independent
  26. // modules, and to copy and distribute the resulting executable under
  27. // terms of your choice, provided that you also meet, for each linked
  28. // independent module, the terms and conditions of the license of that
  29. // module. An independent module is a module which is not derived from
  30. // or based on this library. If you modify this library, you may extend
  31. // this exception to your version of the library, but you are not
  32. // obligated to do so. If you do not wish to do so, delete this
  33. // exception statement from your version.
  34. using System;
  35. using System.IO;
  36. using ICSharpCode.SharpZipLib.Checksums;
  37. namespace ICSharpCode.SharpZipLib.Tar {
  38. /// <summary>
  39. /// This exception is used to indicate that there is a problem
  40. /// with a TAR archive header.
  41. /// </summary>
  42. public class InvalidHeaderException : System.IO.IOException
  43. {
  44. public InvalidHeaderException()
  45. {
  46. }
  47. public InvalidHeaderException(string msg) : base(msg)
  48. {
  49. }
  50. }
  51. }
  52. /* The original Java file had this header:
  53. ** Authored by Timothy Gerard Endres
  54. ** <mailto:[email protected]> <http://www.trustice.com>
  55. **
  56. ** This work has been placed into the public domain.
  57. ** You may use this work in any way and for any purpose you wish.
  58. **
  59. ** THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND,
  60. ** NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR
  61. ** OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY
  62. ** CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR
  63. ** REDISTRIBUTION OF THIS SOFTWARE.
  64. **
  65. */