Skip to content

refactor(gax): add constructor to HttpJsonStatusRuntimeException - #14121

Closed
whowes wants to merge 1 commit into
whowes/get-first-headerfrom
whowes/new-exception-constructor
Closed

refactor(gax): add constructor to HttpJsonStatusRuntimeException#14121
whowes wants to merge 1 commit into
whowes/get-first-headerfrom
whowes/new-exception-constructor

Conversation

@whowes

@whowes whowes commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The exception class is NullMarked but needs to be constructed without a cause (once in the existing codebase with a null cause, with more expected with upcoming resumable upload support). Adding a separate constructor makes this cleaner and compatible with nullability checks.

@whowes whowes changed the title whowes/new exception constructor refactor(gax): add constructor to HttpJsonStatusRuntimeException Aug 19, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new constructor overload in HttpJsonStatusRuntimeException that accepts only statusCode and message, avoiding the need to pass a null cause. It also updates HttpJsonClientCallImpl to use this new constructor when throwing a deadline exceeded exception. There are no review comments, and I have no feedback to provide.

@whowes
whowes force-pushed the whowes/get-first-header branch from 6f625b3 to 7c7cb65 Compare August 19, 2026 18:24
@whowes
whowes force-pushed the whowes/new-exception-constructor branch from 7f5be2e to 57247e9 Compare August 19, 2026 18:24
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@whowes whowes closed this Aug 19, 2026
@whowes
whowes deleted the whowes/new-exception-constructor branch August 19, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant