@joebigelow / wix / commits / b75681ca

Move WixFileNotFoundException from Core back to Data

Rob Mensching committed Jan 2, 2018 at 14:19 UTC b75681cadcfa4347a98e4815154d6c2d311da62a
1 file changed -44
src/WixToolset.Core/WixFileNotFoundException.cs deleted
-44
@@ -1,44 +0,0 @@
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 -}