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