// 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 WixUnexpectedFileFormatException : WixException { public WixUnexpectedFileFormatException(string path, string expectedFormat, string format, Exception innerException = null) : base(ErrorMessages.UnexpectedFileFormat(path, expectedFormat, format), innerException) { this.Path = path; this.ExpectedFileFormat = expectedFormat; this.FileFormat = format; } /// /// Gets the expected file format. /// public string ExpectedFileFormat { get; } /// /// 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; set; } } }