// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixToolset.Dtf.Compression.Zip { using System; using System.IO; using System.Resources; using System.Globalization; using System.Runtime.Serialization; /// /// Exception class for zip operations. /// [Serializable] public class ZipException : ArchiveException { /// /// Creates a new ZipException with a specified error message and a reference to the /// inner exception that is the cause of this exception. /// /// The message that describes the error. /// The exception that is the cause of the current exception. If the /// innerException parameter is not a null reference (Nothing in Visual Basic), the current exception /// is raised in a catch block that handles the inner exception. public ZipException(string message, Exception innerException) : base(message, innerException) { } /// /// Creates a new ZipException with a specified error message. /// /// The message that describes the error. public ZipException(string message) : this(message, null) { } /// /// Creates a new ZipException. /// public ZipException() : this(null, null) { } /// /// Initializes a new instance of the ZipException class with serialized data. /// /// The SerializationInfo that holds the serialized object data about the exception being thrown. /// The StreamingContext that contains contextual information about the source or destination. protected ZipException(SerializationInfo info, StreamingContext context) : base(info, context) { } /// /// Sets the SerializationInfo with information about the exception. /// /// The SerializationInfo that holds the serialized object data about the exception being thrown. /// The StreamingContext that contains contextual information about the source or destination. public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); } } }