Using v2.6.5.
There's a ChargeBee::Error class but this code does not handle all exceptions so RestClient::BadRequest squeaks through.
The exception is not documented (as most Ruby libs and their exceptions aren't) but it and others are placed into the RestClient::Exceptions::EXCEPTION_MAP constant.
No JSON exceptions are caught here.
There's probably more but that's what I've seen so far.
Also note that RESTClient seems dead. But, maybe that's okay.
Using v2.6.5.
There's a
ChargeBee::Errorclass but this code does not handle all exceptions soRestClient::BadRequestsqueaks through.The exception is not documented (as most Ruby libs and their exceptions aren't) but it and others are placed into the
RestClient::Exceptions::EXCEPTION_MAPconstant.No JSON exceptions are caught here.
There's probably more but that's what I've seen so far.
Also note that RESTClient seems dead. But, maybe that's okay.