// 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.Data { using System; /// /// Exception when file does not match the expected format. /// public class WixCorruptFileException : WixException { public WixCorruptFileException(string path, string format, Exception innerException = null) : base(ErrorMessages.CorruptFileFormat(path, format), innerException) { this.Path = path; this.FileFormat = format; } /// /// Gets the actual file format found in the file. /// public string FileFormat { get; } /// /// Gets the path to the file with unexpected format. /// public string Path { get; } } }