diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Data/messages.cs | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/src/WixToolset.Data/Data/messages.cs b/src/WixToolset.Data/Data/messages.cs deleted file mode 100644 index ef2fc446..00000000 --- a/src/WixToolset.Data/Data/messages.cs +++ /dev/null | |||
@@ -1,118 +0,0 @@ | |||
1 | //------------------------------------------------------------------------------ | ||
2 | // <auto-generated> | ||
3 | // This code was generated by a tool. | ||
4 | // Runtime Version:4.0.30319.42000 | ||
5 | // | ||
6 | // Changes to this file may cause incorrect behavior and will be lost if | ||
7 | // the code is regenerated. | ||
8 | // </auto-generated> | ||
9 | //------------------------------------------------------------------------------ | ||
10 | |||
11 | namespace WixToolset.Data | ||
12 | { | ||
13 | using System; | ||
14 | using System.Reflection; | ||
15 | using System.Resources; | ||
16 | |||
17 | |||
18 | public class WixDataErrorEventArgs : MessageEventArgs | ||
19 | { | ||
20 | |||
21 | private static ResourceManager resourceManager = new ResourceManager("WixToolset.Data.Data.Messages", Assembly.GetExecutingAssembly()); | ||
22 | |||
23 | public WixDataErrorEventArgs(SourceLineNumber sourceLineNumbers, int id, string resourceName, params object[] messageArgs) : | ||
24 | base(sourceLineNumbers, id, resourceName, messageArgs) | ||
25 | { | ||
26 | base.Level = MessageLevel.Error; | ||
27 | base.ResourceManager = resourceManager; | ||
28 | } | ||
29 | } | ||
30 | |||
31 | public sealed class WixDataErrors | ||
32 | { | ||
33 | |||
34 | private WixDataErrors() | ||
35 | { | ||
36 | } | ||
37 | |||
38 | public static MessageEventArgs UnexpectedFileFormat(string path, string expectedFormat, string actualFormat) | ||
39 | { | ||
40 | return new WixDataErrorEventArgs(null, 1, "WixDataErrors_UnexpectedFileFormat_1", path, expectedFormat, actualFormat); | ||
41 | } | ||
42 | |||
43 | public static MessageEventArgs CorruptFileFormat(string path, string format) | ||
44 | { | ||
45 | return new WixDataErrorEventArgs(null, 2, "WixDataErrors_CorruptFileFormat_1", path, format); | ||
46 | } | ||
47 | |||
48 | public static MessageEventArgs InvalidFileName(SourceLineNumber sourceLineNumbers, string fileName) | ||
49 | { | ||
50 | return new WixDataErrorEventArgs(sourceLineNumbers, 85, "WixDataErrors_InvalidFileName_1", fileName); | ||
51 | } | ||
52 | |||
53 | public static MessageEventArgs DuplicateLocalizationIdentifier(SourceLineNumber sourceLineNumbers, string localizationId) | ||
54 | { | ||
55 | return new WixDataErrorEventArgs(sourceLineNumbers, 100, "WixDataErrors_DuplicateLocalizationIdentifier_1", localizationId); | ||
56 | } | ||
57 | |||
58 | public static MessageEventArgs FileNotFound(SourceLineNumber sourceLineNumbers, string file) | ||
59 | { | ||
60 | return new WixDataErrorEventArgs(sourceLineNumbers, 103, "WixDataErrors_FileNotFound_1", file); | ||
61 | } | ||
62 | |||
63 | public static MessageEventArgs FileNotFound(SourceLineNumber sourceLineNumbers, string file, string fileType) | ||
64 | { | ||
65 | return new WixDataErrorEventArgs(sourceLineNumbers, 103, "WixDataErrors_FileNotFound_2", file, fileType); | ||
66 | } | ||
67 | |||
68 | public static MessageEventArgs DuplicatePrimaryKey(SourceLineNumber sourceLineNumbers, string primaryKey, string tableName) | ||
69 | { | ||
70 | return new WixDataErrorEventArgs(sourceLineNumbers, 130, "WixDataErrors_DuplicatePrimaryKey_1", primaryKey, tableName); | ||
71 | } | ||
72 | |||
73 | public static MessageEventArgs InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile) | ||
74 | { | ||
75 | return new WixDataErrorEventArgs(sourceLineNumbers, 136, "WixDataErrors_InvalidIdt_1", idtFile); | ||
76 | } | ||
77 | |||
78 | public static MessageEventArgs InvalidIdt(SourceLineNumber sourceLineNumbers, string idtFile, string tableName) | ||
79 | { | ||
80 | return new WixDataErrorEventArgs(sourceLineNumbers, 136, "WixDataErrors_InvalidIdt_2", idtFile, tableName); | ||
81 | } | ||
82 | |||
83 | public static MessageEventArgs VersionMismatch(SourceLineNumber sourceLineNumbers, string fileType, string version, string expectedVersion) | ||
84 | { | ||
85 | return new WixDataErrorEventArgs(sourceLineNumbers, 141, "WixDataErrors_VersionMismatch_1", fileType, version, expectedVersion); | ||
86 | } | ||
87 | |||
88 | public static MessageEventArgs IllegalFileCompressionAttributes(SourceLineNumber sourceLineNumbers) | ||
89 | { | ||
90 | return new WixDataErrorEventArgs(sourceLineNumbers, 167, "WixDataErrors_IllegalFileCompressionAttributes_1"); | ||
91 | } | ||
92 | |||
93 | public static MessageEventArgs MissingTableDefinition(string tableName) | ||
94 | { | ||
95 | return new WixDataErrorEventArgs(null, 182, "WixDataErrors_MissingTableDefinition_1", tableName); | ||
96 | } | ||
97 | |||
98 | public static MessageEventArgs RealTableMissingPrimaryKeyColumn(SourceLineNumber sourceLineNumbers, string tableName) | ||
99 | { | ||
100 | return new WixDataErrorEventArgs(sourceLineNumbers, 225, "WixDataErrors_RealTableMissingPrimaryKeyColumn_1", tableName); | ||
101 | } | ||
102 | |||
103 | public static MessageEventArgs PathTooLong(SourceLineNumber sourceLineNumbers, string fileName) | ||
104 | { | ||
105 | return new WixDataErrorEventArgs(sourceLineNumbers, 262, "WixDataErrors_PathTooLong_1", fileName); | ||
106 | } | ||
107 | |||
108 | public static MessageEventArgs InvalidStringForCodepage(SourceLineNumber sourceLineNumbers, string codepage) | ||
109 | { | ||
110 | return new WixDataErrorEventArgs(sourceLineNumbers, 311, "WixDataErrors_InvalidStringForCodepage_1", codepage); | ||
111 | } | ||
112 | |||
113 | public static MessageEventArgs TooManyColumnsInRealTable(string tableName, int columnCount, int supportedColumnCount) | ||
114 | { | ||
115 | return new WixDataErrorEventArgs(null, 386, "WixDataErrors_TooManyColumnsInRealTable_1", tableName, columnCount, supportedColumnCount); | ||
116 | } | ||
117 | } | ||
118 | } | ||