diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/WixToolset.Data/Message.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/WixToolset.Data/Message.cs b/src/WixToolset.Data/Message.cs index 6cd4105c..85a402e5 100644 --- a/src/WixToolset.Data/Message.cs +++ b/src/WixToolset.Data/Message.cs | |||
@@ -82,19 +82,6 @@ namespace WixToolset.Data | |||
82 | /// <value>The arguments for the format string.</value> | 82 | /// <value>The arguments for the format string.</value> |
83 | public object[] MessageArgs { get; } | 83 | public object[] MessageArgs { get; } |
84 | 84 | ||
85 | /// <summary> | ||
86 | /// Makes a warning an error. | ||
87 | /// </summary> | ||
88 | public void ElevateWarningToError() | ||
89 | { | ||
90 | if (this.Level != MessageLevel.Warning) | ||
91 | { | ||
92 | throw new InvalidOperationException($"Cannot elevate {this.Level.ToString()} Message to an Error. Only Warning Messages can be elevated to an Error."); | ||
93 | } | ||
94 | |||
95 | this.Level = MessageLevel.Error; | ||
96 | } | ||
97 | |||
98 | public override string ToString() | 85 | public override string ToString() |
99 | { | 86 | { |
100 | if (this.ResourceManager == null) | 87 | if (this.ResourceManager == null) |