aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/WixFileNotFoundException.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
committerRob Mensching <rob@firegiant.com>2017-12-19 12:25:40 -0800
commit155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch)
tree59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/WixFileNotFoundException.cs
parent6f1665ed759b31bd095f186f9239232c653597cd (diff)
downloadwix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2
wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/WixFileNotFoundException.cs')
-rw-r--r--src/WixToolset.Core/WixFileNotFoundException.cs44
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
3namespace 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}