api-manager
api-manager copied to clipboard
Improve exception codes including meta data in the error mesage
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.