You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{Type="https://httpstatuses.com/500",Status=500,Title="Internal Server Error",Detail="An internal error has occured and the operation could not complete."};
72
+
{Type="https://httpstatuses.com/500",Status=500,Title="Internal Server Error",Detail="An internal error has occurred and the operation could not complete."};
Copy file name to clipboardExpand all lines: CDF-Solution/CommonDeliveryFramework.Net.Aspnet/ManagedExceptionExtensions.cs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ public static class ManagedExceptionExtensions
11
11
/// Extension method that generates problem details for the exception.
12
12
/// </summary>
13
13
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
14
-
/// <param name="controller">The base controller the exception occured in. </param>
14
+
/// <param name="controller">The base controller the exception occurred in. </param>
15
15
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/403 </param>
16
16
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 403.</param>
17
17
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Forbidden.</param>
@@ -27,7 +27,7 @@ public static ProblemDetails GetProblemDetails(this ExternalAccessException sour
27
27
/// Extension method that generates problem details for the exception.
28
28
/// </summary>
29
29
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
30
-
/// <param name="controller">The base controller the exception occured in. </param>
30
+
/// <param name="controller">The base controller the exception occurred in. </param>
31
31
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/504 </param>
32
32
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 504.</param>
33
33
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Gateway Timeout.</param>
@@ -43,7 +43,7 @@ public static ProblemDetails GetProblemDetails(this CommunicationException sourc
43
43
/// Extension method that generates problem details for the exception.
44
44
/// </summary>
45
45
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
46
-
/// <param name="controller">The base controller the exception occured in. </param>
46
+
/// <param name="controller">The base controller the exception occurred in. </param>
47
47
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/500 </param>
48
48
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 500.</param>
49
49
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Internal Server Error.</param>
@@ -59,7 +59,7 @@ public static ProblemDetails GetProblemDetails(this ConfigurationException sourc
59
59
/// Extension method that generates problem details for the exception.
60
60
/// </summary>
61
61
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
62
-
/// <param name="controller">The base controller the exception occured in. </param>
62
+
/// <param name="controller">The base controller the exception occurred in. </param>
63
63
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/500 </param>
64
64
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 500.</param>
65
65
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Internal Server Error.</param>
@@ -75,7 +75,7 @@ public static ProblemDetails GetProblemDetails(this DataException source,
75
75
/// Extension method that generates problem details for the exception.
76
76
/// </summary>
77
77
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
78
-
/// <param name="controller">The base controller the exception occured in. </param>
78
+
/// <param name="controller">The base controller the exception occurred in. </param>
79
79
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/400 </param>
80
80
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 400.</param>
81
81
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Bad Request.</param>
@@ -91,7 +91,7 @@ public static ProblemDetails GetProblemDetails(this ValidationException source,
91
91
/// Extension method that generates problem details for the exception.
92
92
/// </summary>
93
93
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
94
-
/// <param name="controller">The base controller the exception occured in. </param>
94
+
/// <param name="controller">The base controller the exception occurred in. </param>
95
95
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/500 </param>
96
96
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 500.</param>
97
97
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Internal Server Error.</param>
@@ -107,7 +107,7 @@ public static ProblemDetails GetProblemDetails(this LogicException source,
107
107
/// Extension method that generates problem details for the exception.
108
108
/// </summary>
109
109
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
110
-
/// <param name="controller">The base controller the exception occured in. </param>
110
+
/// <param name="controller">The base controller the exception occurred in. </param>
111
111
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/500 </param>
112
112
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 500.</param>
113
113
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Internal Server Error.</param>
@@ -123,7 +123,7 @@ public static ProblemDetails GetProblemDetails(this ManagedException source,
123
123
/// Extension method that generates problem details for the exception.
124
124
/// </summary>
125
125
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
126
-
/// <param name="controller">The base controller the exception occured in. </param>
126
+
/// <param name="controller">The base controller the exception occurred in. </param>
127
127
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/401 </param>
128
128
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 401.</param>
129
129
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to UnAuthorized.</param>
@@ -139,7 +139,7 @@ public static ProblemDetails GetProblemDetails(this SecurityException source,
139
139
/// Extension method that generates problem details for the exception.
140
140
/// </summary>
141
141
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
142
-
/// <param name="controller">The base controller the exception occured in. </param>
142
+
/// <param name="controller">The base controller the exception occurred in. </param>
143
143
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/504 </param>
144
144
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 504.</param>
145
145
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to GatewayTimeout.</param>
@@ -155,7 +155,7 @@ public static ProblemDetails GetProblemDetails(this TimeoutException source,
155
155
/// Extension method that generates problem details for the exception.
156
156
/// </summary>
157
157
/// <param name="source">The exception to map to a <see cref="ProblemDetails"/></param>
158
-
/// <param name="controller">The base controller the exception occured in. </param>
158
+
/// <param name="controller">The base controller the exception occurred in. </param>
159
159
/// <param name="type">Optional parameter that sets the URL for the human readable explanation for the status code. Default value is set to https://httpstatuses.com/500 </param>
160
160
/// <param name="status">Optional parameter that sets the return status code for the problem. Default value is set to 500.</param>
161
161
/// <param name="title">Optional parameter that sets the title for the problem. Default value is set to Internal Server Error.</param>
Copy file name to clipboardExpand all lines: CDF-Solution/CommonDeliveryFramework.Net.Automation.Common/CommonDeliveryFramework.Net.Automation.Common.csproj
/// Extension method that determines if the logger field is implemented in the class. If it exists will return the provided source. Otherwise will add the logging namespace and the logger field.
49
+
/// </summary>
50
+
/// <param name="source">Source class to check for the logger field.</param>
51
+
/// <param name="loggerName">The name of the logger field to check for.</param>
52
+
/// <param name="parentSourceCode">The source code the class was loaded from.</param>
53
+
/// <returns>The existing source code if the field is found, or the updated source code with the logging field added.</returns>
0 commit comments