diff --git a/modules/swagger-codegen/src/main/resources/csharp/apiException.mustache b/modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
index aee6302d02..38a340be24 100644
--- a/modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
+++ b/modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
@@ -11,6 +11,10 @@ namespace {{invokerPackage}} {
/// The error code (HTTP status code).
public int ErrorCode { get; set; }
+ ///
+ /// Gets or sets the error content (body json object)
+ ///
+ /// The error content (Http response body).
public dynamic ErrorContent { get; private set; }
///
@@ -29,8 +33,8 @@ namespace {{invokerPackage}} {
}
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) {
- this.errorCode = errorCode;
- this.errorContent = errorContent;
+ this.ErrorCode = errorCode;
+ this.ErrorContent = errorContent;
}
}