minor refactoring

This commit is contained in:
Fredrik Gustafsson 2015-06-05 13:51:52 +02:00
parent 8f2e84d263
commit e737964f66

View File

@ -11,6 +11,10 @@ namespace {{invokerPackage}} {
/// <value>The error code (HTTP status code).</value>
public int ErrorCode { get; set; }
/// <summary>
/// Gets or sets the error content (body json object)
/// </summary>
/// <value>The error content (Http response body).</value>
public dynamic ErrorContent { get; private set; }
/// <summary>
@ -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;
}
}