RestClient::BadRequest Error and JSON::ParseError not Caught
sshaw opened this issue · comments
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.