-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProblemConstants.cs
More file actions
59 lines (51 loc) · 1.73 KB
/
ProblemConstants.cs
File metadata and controls
59 lines (51 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
namespace ManagedCode.Communication.Extensions.Constants;
/// <summary>
/// Constants for Problem details to avoid string literals throughout the codebase.
/// </summary>
public static class ProblemConstants
{
/// <summary>
/// Problem titles
/// </summary>
public static class Titles
{
/// <summary>
/// Title for validation failure problems
/// </summary>
public const string ValidationFailed = "Validation failed";
/// <summary>
/// Title for unexpected error problems
/// </summary>
public const string UnexpectedError = "An unexpected error occurred";
}
/// <summary>
/// Problem extension keys
/// </summary>
public static class ExtensionKeys
{
/// <summary>
/// Key for validation errors in problem extensions
/// </summary>
public const string ValidationErrors = "validationErrors";
/// <summary>
/// Key for trace ID in problem extensions
/// </summary>
public const string TraceId = "traceId";
/// <summary>
/// Key for hub method name in problem extensions
/// </summary>
public const string HubMethod = "hubMethod";
/// <summary>
/// Key for hub type name in problem extensions
/// </summary>
public const string HubType = "hubType";
/// <summary>
/// Key for inner exception in problem extensions
/// </summary>
public const string InnerException = "innerException";
/// <summary>
/// Key for stack trace in problem extensions
/// </summary>
public const string StackTrace = "stackTrace";
}
}