Skip to content

RestClient::BadRequest Error and JSON::ParseError not Caught #40

Description

@sshaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions