Skip to content

Commit 98e7396

Browse files
improve examples summary
1 parent 3c5e557 commit 98e7396

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/CustomExceptionMiddleware.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0; net5.0</TargetFrameworks>
5-
<Version>1.1.7</Version>
5+
<Version>1.1.8</Version>
66
<Authors>Isaac Nunes Borges</Authors>
77
<Company>isaacnborges</Company>
88
<LangVersion>9.0</LangVersion>

src/Responses/CustomErrorDetailResponse.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public class CustomErrorDetailResponse
55
/// <summary>
66
/// Exception type to identificate what error was throw
77
/// </summary>
8+
/// <example>VALIDATION_ERRORS</example>
89
public string Type { get; set; }
910

1011
/// <summary>
@@ -35,11 +36,13 @@ public class CustomErrorDetail
3536
/// <summary>
3637
/// Error message
3738
/// </summary>
39+
/// <example>Item not found</example>
3840
public string Msg { get; set; }
3941

4042
/// <summary>
4143
/// StackTrace error message
4244
/// </summary>
45+
/// <example>at CustomExceptionMiddleware.WebAppTest.Custom.ProductService.GetDomainException(Boolean returnProducts)</example>
4346
public string Detail { get; set; }
4447

4548
/// <summary>

src/Responses/CustomErrorResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public class CustomErrorResponse
55
/// <summary>
66
/// Exception type to identificate what error was throw
77
/// </summary>
8+
/// <example>VALIDATION_ERRORS</example>
89
public string Type { get; set; }
910

1011
/// <summary>
@@ -35,6 +36,7 @@ public class CustomError
3536
/// <summary>
3637
/// Error message
3738
/// </summary>
39+
/// <example>Item not found</example>
3840
public string Msg { get; set; }
3941

4042
/// <summary>

0 commit comments

Comments
 (0)