Skip to content

Collapse HttpResponseException into HttpException and hoist a Retryable interface #37

Closed

Description

@OmarAlJarrah

Problem

Two response-carrying exception bases exist — HttpException (RuntimeException, HttpException.kt) and HttpResponseException (IOException, HttpResponseException.kt) — disagreeing on retryable vs isRetryable and checked-ness. NetworkException already covers the transport case.

Proposed change

Standardise on HttpException (RuntimeException). Introduce interface Retryable { val isRetryable: Boolean } and implement it across the family. Grep pipeline/transport for throwers of the removed type first.

Acceptance

  • One response-carrying base
  • Retryable used consistently
  • apiDump + tests

Dependencies


Priority: medium · Effort: medium

Activity

  1. added
    sdk-core
    tech-debt
    on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdk-coretech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions