aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/WixUnexpectedFileFormatException.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-19 12:24:16 -0800
committerRob Mensching <rob@firegiant.com>2017-12-19 12:24:16 -0800
commitf680e915f065026efd0301a76fd524f87b8c5f06 (patch)
tree63b6a8d7b799b10d77e133209041a809f4f3d144 /src/WixToolset.Data/WixUnexpectedFileFormatException.cs
parent77dc8cd1acd5332aa0cb077c7e87d0678756969b (diff)
downloadwix-f680e915f065026efd0301a76fd524f87b8c5f06.tar.gz
wix-f680e915f065026efd0301a76fd524f87b8c5f06.tar.bz2
wix-f680e915f065026efd0301a76fd524f87b8c5f06.zip
Simplify message handling
Diffstat (limited to 'src/WixToolset.Data/WixUnexpectedFileFormatException.cs')
-rw-r--r--src/WixToolset.Data/WixUnexpectedFileFormatException.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WixToolset.Data/WixUnexpectedFileFormatException.cs b/src/WixToolset.Data/WixUnexpectedFileFormatException.cs
index 4d1e39e9..340fb4d7 100644
--- a/src/WixToolset.Data/WixUnexpectedFileFormatException.cs
+++ b/src/WixToolset.Data/WixUnexpectedFileFormatException.cs
@@ -10,7 +10,7 @@ namespace WixToolset.Data
10 public class WixUnexpectedFileFormatException : WixException 10 public class WixUnexpectedFileFormatException : WixException
11 { 11 {
12 public WixUnexpectedFileFormatException(string path, FileFormat expectedFormat, FileFormat format, Exception innerException = null) 12 public WixUnexpectedFileFormatException(string path, FileFormat expectedFormat, FileFormat format, Exception innerException = null)
13 : base(WixDataErrors.UnexpectedFileFormat(path, expectedFormat.ToString().ToLowerInvariant(), format.ToString().ToLowerInvariant()), innerException) 13 : base(ErrorMessages.UnexpectedFileFormat(path, expectedFormat, format), innerException)
14 { 14 {
15 this.Path = path; 15 this.Path = path;
16 this.ExpectedFileFormat = expectedFormat; 16 this.ExpectedFileFormat = expectedFormat;
@@ -20,12 +20,12 @@ namespace WixToolset.Data
20 /// <summary> 20 /// <summary>
21 /// Gets the expected file format. 21 /// Gets the expected file format.
22 /// </summary> 22 /// </summary>
23 public FileFormat ExpectedFileFormat { get; private set; } 23 public FileFormat ExpectedFileFormat { get; }
24 24
25 /// <summary> 25 /// <summary>
26 /// Gets the actual file format found in the file. 26 /// Gets the actual file format found in the file.
27 /// </summary> 27 /// </summary>
28 public FileFormat FileFormat { get; private set; } 28 public FileFormat FileFormat { get; }
29 29
30 /// <summary> 30 /// <summary>
31 /// Gets the path to the file with unexpected format. 31 /// Gets the path to the file with unexpected format.