go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

How to catch parameter validation failure errors

Open Arvin-Lee opened this issue 5 months ago • 2 comments
trafficstars

How to catch parameter validation failure errors

Arvin-Lee avatar Jun 10 '25 10:06 Arvin-Lee

Please give more details or write an example code.

kevwan avatar Jun 12 '25 15:06 kevwan

Image Handle errors uniformly (err := httpx.Parse(r, &req); ) instead of handling parameter parsing errors in each handler

thanks!!!

Arvin-Lee avatar Jun 12 '25 16:06 Arvin-Lee