Files
openapi-generator/modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
2015-02-05 07:17:38 -08:00

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;
}
}
}