Skip to content

Commit e737964

Browse files
author
Fredrik Gustafsson
committed
minor refactoring
1 parent 8f2e84d commit e737964

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/swagger-codegen/src/main/resources/csharp/apiException.mustache

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ namespace {{invokerPackage}} {
1111
/// <value>The error code (HTTP status code).</value>
1212
public int ErrorCode { get; set; }
1313

14+
/// <summary>
15+
/// Gets or sets the error content (body json object)
16+
/// </summary>
17+
/// <value>The error content (Http response body).</value>
1418
public dynamic ErrorContent { get; private set; }
1519

1620
/// <summary>
@@ -29,8 +33,8 @@ namespace {{invokerPackage}} {
2933
}
3034

3135
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) {
32-
this.errorCode = errorCode;
33-
this.errorContent = errorContent;
36+
this.ErrorCode = errorCode;
37+
this.ErrorContent = errorContent;
3438
}
3539

3640
}

0 commit comments

Comments
 (0)