zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

Give Web API programmer specific hint about which API function is offending . #49

Closed zijianhuang closed 6 years ago

zijianhuang commented 6 years ago

related to #48. GetParameterBinder may throw ArgumentException is the api programmer uses a wrong binding.

Catch this exception in

public static WebApiDescription GetWebApiDescription(ApiDescription description)

and throw again with the Web API class name and function name.

Also write more details in catch.

zijianhuang commented 6 years ago

now the lib throw ArgumentException when it does not like the Web API definition.