Uploaded image for project: 'Trapperkeeper (moved to puppet.atlassian.net)'
  1. Trapperkeeper (moved to puppet.atlassian.net)
  2. TK-189

clj-http-client: Throw better exceptions/errors

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • TrapperKeeper
    • None

    Description

      Currently, the Java-side of clj-http-client throws a generic HttpClientException for any sort of request failure. In an effort to allow for consumers to handle failures more easily, we should throw more specific exceptions, or let the underlying ones bubble up.

      This issue came up during SERVER-517 when the most we could do to pass along the error was to effectively call to-string on the HttpClientException.

      NOTE that the Clojure-side of clj-http-client does not behave this way: it lets the underlying exceptions bubble up.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nwolfe Nate Wolfe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support