src/ICSharpCode.SharpZipLib/Zip/ZipException.cs (24 lines of code) (raw):

using System; using System.Runtime.Serialization; namespace ICSharpCode.SharpZipLib.Zip { /// <summary> /// ZipException represents exceptions specific to Zip classes and code. /// </summary> [Serializable] public class ZipException : SharpZipBaseException { /// <summary> /// Initialise a new instance of <see cref="ZipException" />. /// </summary> public ZipException() { } /// <summary> /// Initialise a new instance of <see cref="ZipException" /> with its message string. /// </summary> /// <param name="message">A <see cref="string"/> that describes the error.</param> public ZipException(string message) : base(message) { } /// <summary> /// Initialise a new instance of <see cref="ZipException" />. /// </summary> /// <param name="message">A <see cref="string"/> that describes the error.</param> /// <param name="innerException">The <see cref="Exception"/> that caused this exception.</param> public ZipException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Initializes a new instance of the ZipException class with serialized data. /// </summary> /// <param name="info"> /// The System.Runtime.Serialization.SerializationInfo that holds the serialized /// object data about the exception being thrown. /// </param> /// <param name="context"> /// The System.Runtime.Serialization.StreamingContext that contains contextual information /// about the source or destination. /// </param> protected ZipException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }