Repository navigation
cc4732f feat: expose structured API error data in RazorpayException
ApiClientnow parses the API error body and attaches it to the exception, so callers no longer need to parse the response themselves- New getters on
RazorpayException:getCode(),getDescription(),getField(),getReason(),getSource(),getStep(),getMetadata(), andgetErrorResponse()for the full error JSON getStatusCode()returns the HTTP status code from the failed response- Backwards compatible: existing constructors and
getMessage()behavior are unchanged