api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

Improve exception codes including meta data in the error mesage

Open rmsamitha opened this issue 7 months ago • 0 comments

Exception codes that can be improved by including meta data in the description with %s placeholders. Those values should be sent as arguments when creating the ErrorHandler.

i.e. TIER_NAME_INVALID(900305, "The tier name is invalid.", 400, "The tier name is invalid")

In above error message, the the tier name can be included as below.

TIER_NAME_INVALID(900305, "The tier name is invalid.", 400, "The tier name %s is invalid")

And related values should be sent as arguments when creating the ErrorHandler.

Can go through all exception codes and perform this improvement.

rmsamitha avatar Jul 05 '24 06:07 rmsamitha