chargebee-java icon indicating copy to clipboard operation
chargebee-java copied to clipboard

deprecated `code` in `APIException` has no equal replacement

Open csaundersz opened this issue 1 month ago • 0 comments

Description of the Bug

code is deprecated in APIException with the message to use apiErrorCode instead. apiErrorCode does not convey the same level of granularity of the failure. See screenshot.

Image

Steps to reproduce

Attempt to create a hosted page checkout with an invalid coupon code.

Expected Behavior

I should be able to determine the specific cause of an error, e.g. coupon_not_applicable without using deprecated accessors

Code Snippets (if applicable)


Operating System

Mac

Language version

21

Library version

3.38.0

Additional context

No response

csaundersz avatar Nov 06 '25 08:11 csaundersz