diff options
Diffstat (limited to 'src/WixToolset.Core/WixFileNotFoundException.cs')
| -rw-r--r-- | src/WixToolset.Core/WixFileNotFoundException.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/WixToolset.Core/WixFileNotFoundException.cs b/src/WixToolset.Core/WixFileNotFoundException.cs new file mode 100644 index 00000000..7bffe417 --- /dev/null +++ b/src/WixToolset.Core/WixFileNotFoundException.cs | |||
| @@ -0,0 +1,44 @@ | |||
| 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 | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using WixToolset.Data; | ||
| 7 | |||
| 8 | /// <summary> | ||
| 9 | /// WixException thrown when a file cannot be found. | ||
| 10 | /// </summary> | ||
| 11 | [Serializable] | ||
| 12 | public sealed class WixFileNotFoundException : WixException | ||
| 13 | { | ||
| 14 | /// <summary> | ||
| 15 | /// Instantiate a new WixFileNotFoundException. | ||
| 16 | /// </summary> | ||
| 17 | /// <param name="sourceLineNumbers">Source line information pertaining to the file that cannot be found.</param> | ||
| 18 | /// <param name="file">The file that could not be found.</param> | ||
| 19 | public WixFileNotFoundException(SourceLineNumber sourceLineNumbers, string file) : | ||
| 20 | base(ErrorMessages.FileNotFound(sourceLineNumbers, file)) | ||
| 21 | { | ||
| 22 | } | ||
| 23 | |||
| 24 | /// <summary> | ||
| 25 | /// Instantiate a new WixFileNotFoundException. | ||
| 26 | /// </summary> | ||
| 27 | /// <param name="file">The file that could not be found.</param> | ||
| 28 | /// <param name="fileType">The type of file that cannot be found.</param> | ||
| 29 | public WixFileNotFoundException(string file, string fileType) : this(null, file, fileType) | ||
| 30 | { | ||
| 31 | } | ||
| 32 | |||
| 33 | /// <summary> | ||
| 34 | /// Instantiate a new WixFileNotFoundException. | ||
| 35 | /// </summary> | ||
| 36 | /// <param name="sourceLineNumbers">Source line information pertaining to the file that cannot be found.</param> | ||
| 37 | /// <param name="file">The file that could not be found.</param> | ||
| 38 | /// <param name="fileType">The type of file that cannot be found.</param> | ||
| 39 | public WixFileNotFoundException(SourceLineNumber sourceLineNumbers, string file, string fileType) : | ||
| 40 | base(ErrorMessages.FileNotFound(sourceLineNumbers, file, fileType)) | ||
| 41 | { | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } | ||
