diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:47:19 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 22:47:19 -0700 |
commit | 4194343c39fa66778a8de9804c88789bd41dae48 (patch) | |
tree | 23f750291ef5e43272f05fadbf8f2d9530d027d2 /src/ext/Http/wixext/HttpErrors.cs | |
parent | 432bbb45902b36869b9821d9c07f200a58878c89 (diff) | |
download | wix-4194343c39fa66778a8de9804c88789bd41dae48.tar.gz wix-4194343c39fa66778a8de9804c88789bd41dae48.tar.bz2 wix-4194343c39fa66778a8de9804c88789bd41dae48.zip |
Move Http.wixext into ext
Diffstat (limited to 'src/ext/Http/wixext/HttpErrors.cs')
-rw-r--r-- | src/ext/Http/wixext/HttpErrors.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ext/Http/wixext/HttpErrors.cs b/src/ext/Http/wixext/HttpErrors.cs new file mode 100644 index 00000000..e87adf54 --- /dev/null +++ b/src/ext/Http/wixext/HttpErrors.cs | |||
@@ -0,0 +1,31 @@ | |||
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.Http | ||
4 | { | ||
5 | using System; | ||
6 | using System.Resources; | ||
7 | using WixToolset.Data; | ||
8 | |||
9 | public static class HttpErrors | ||
10 | { | ||
11 | public static Message NoSecuritySpecified(SourceLineNumber sourceLineNumbers) | ||
12 | { | ||
13 | return Message(sourceLineNumbers, Ids.NoSecuritySpecified, "The UrlReservation element doesn't identify the security for the reservation. You must either specify the Sddl attribute, or provide child UrlAce elements."); | ||
14 | } | ||
15 | |||
16 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args) | ||
17 | { | ||
18 | return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args); | ||
19 | } | ||
20 | |||
21 | private static Message Message(SourceLineNumber sourceLineNumber, Ids id, ResourceManager resourceManager, string resourceName, params object[] args) | ||
22 | { | ||
23 | return new Message(sourceLineNumber, MessageLevel.Error, (int)id, resourceManager, resourceName, args); | ||
24 | } | ||
25 | |||
26 | public enum Ids | ||
27 | { | ||
28 | NoSecuritySpecified = 6701, | ||
29 | } | ||
30 | } | ||
31 | } | ||