forked from loafle/openapi-generator-original
21 lines
353 B
Plaintext
21 lines
353 B
Plaintext
using System;
|
|
|
|
namespace {{invokerPackage}} {
|
|
public class ApiException : Exception {
|
|
|
|
private int errorCode = 0;
|
|
|
|
public ApiException() {}
|
|
|
|
public int ErrorCode {
|
|
get
|
|
{
|
|
return errorCode;
|
|
}
|
|
}
|
|
|
|
public ApiException(int errorCode, string message) : base(message) {
|
|
this.errorCode = errorCode;
|
|
}
|
|
}
|
|
} |