public static ApiExceptionMessage FromTemplatedMessage(string templatedMessage, int statusCode) { ApiExceptionMessage exceptionMessage = new ApiExceptionMessage { StatusCode = statusCode }; exceptionMessage.ParseFromTemplatedMessage(templatedMessage); return(exceptionMessage); }
public ApiException(ApiExceptionMessage exceptionMessage) { this.ExceptionMessage = exceptionMessage; }