Skip to content

Do not let low-level expections leak through the API #11

Description

@dlyash

Currently, any RestMarketoClient's method may throw javax.ws.rs.ProcessingException or javax.ws.rs.WebApplicationException. Not only it exposes implementation details but also forces clients to deal with it on their own.

Proposed:

  • Catch ProcessingException inside SDK and throw MarketoApiException instead
  • the same for javax.ws.rs.WebApplicationException

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions