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