| 1 | // 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. |
| 2 | |
| 3 | namespace WixToolset.Core.Native.Msi |
| 4 | { |
| 5 | using System; |
| 6 | using WixToolset.Data; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// WiX invalid idt exception. |
| 10 | /// </summary> |
| 11 | [Serializable] |
| 12 | public sealed class WixInvalidIdtException : WixException |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// Instantiate a new WixInvalidIdtException. |
| 16 | /// </summary> |
| 17 | public WixInvalidIdtException() |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | /// <summary> |
| 22 | /// Instantiate a new WixInvalidIdtException. |
| 23 | /// </summary> |
| 24 | /// <param name="message"></param> |
| 25 | /// <param name="innerException"></param> |
| 26 | public WixInvalidIdtException(string message, Exception innerException) : base(message, innerException) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | /// <summary> |
| 31 | /// Instantiate a new WixInvalidIdtException. |
| 32 | /// </summary> |
| 33 | /// <param name="idtFile">The invalid idt file.</param> |
| 34 | public WixInvalidIdtException(string idtFile) : |
| 35 | base(ErrorMessages.InvalidIdt(new SourceLineNumber(idtFile), idtFile)) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | /// <summary> |
| 40 | /// Instantiate a new WixInvalidIdtException. |
| 41 | /// </summary> |
| 42 | /// <param name="idtFile">The invalid idt file.</param> |
| 43 | /// <param name="tableName">The table name of the invalid idt file.</param> |
| 44 | public WixInvalidIdtException(string idtFile, string tableName) : |
| 45 | base(ErrorMessages.InvalidIdt(new SourceLineNumber(idtFile), idtFile, tableName)) |
| 46 | { |
| 47 | } |
| 48 | } |
| 49 | } |