PageRenderTime 65ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Utilities/Compression/CompressionException.cs

#
C# | 41 lines | 20 code | 3 blank | 18 comment | 0 complexity | cb43974041c42822cbae9e763e8cfcc2 MD5 | raw file
Possible License(s): Apache-2.0
  1. using System;
  2. namespace Delta.Utilities.Compression
  3. {
  4. /// <summary>
  5. /// CompressionException is the base exception class for the SharpZipLibrary.
  6. /// All library exceptions are derived from this.
  7. /// </summary>
  8. public class CompressionException : ApplicationException
  9. {
  10. #region Constructors
  11. /// <summary>
  12. /// Initializes a new instance of the SharpZipLibraryException class.
  13. /// </summary>
  14. public CompressionException()
  15. {
  16. }
  17. /// <summary>
  18. /// Initializes a new instance of the SharpZipLibraryException class with
  19. /// a specified error message.
  20. /// </summary>
  21. public CompressionException(string msg)
  22. : base(msg)
  23. {
  24. }
  25. /// <summary>
  26. /// Initializes a new instance of the SharpZipLibraryException class with
  27. /// a specified error message and a reference to the inner exception that
  28. /// is the cause of this exception.
  29. /// </summary>
  30. /// <param name="message">Error message string</param>
  31. /// <param name="innerException">The inner exception</param>
  32. public CompressionException(string message, Exception innerException)
  33. : base(message, innerException)
  34. {
  35. }
  36. #endregion
  37. }
  38. }