mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
minor refactoring
This commit is contained in:
parent
8f2e84d263
commit
e737964f66
@ -11,6 +11,10 @@ namespace {{invokerPackage}} {
|
|||||||
/// <value>The error code (HTTP status code).</value>
|
/// <value>The error code (HTTP status code).</value>
|
||||||
public int ErrorCode { get; set; }
|
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; }
|
public dynamic ErrorContent { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -29,8 +33,8 @@ namespace {{invokerPackage}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) {
|
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message) {
|
||||||
this.errorCode = errorCode;
|
this.ErrorCode = errorCode;
|
||||||
this.errorContent = errorContent;
|
this.ErrorContent = errorContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user