Skip to content

CxODEV-1874: always carry message on structured_error (3.9.0 backport) - #222

Merged
ognjenkatic merged 1 commit into
v3from
CxODEV-1874-message-always-carried-v3
Aug 26, 2026
Merged

CxODEV-1874: always carry message on structured_error (3.9.0 backport)#222
ognjenkatic merged 1 commit into
v3from
CxODEV-1874-message-always-carried-v3

Conversation

@ognjenkatic

Copy link
Copy Markdown
Collaborator

Backport of #221 to the v3 line — the source change is identical (cherry-pick).

StructuredError.FromException no longer suppresses message when it equals reason — the payload always mirrors Exception.Message (which falls back to the reason), so consumers read message directly without a reason fallback of their own.

Payload impact: throwers that supply no distinct message now emit message equal to reason (previously omitted). Additive-optional; CurrentVersion stays 1.

Versions bumped 3.8.1 → 3.9.0 for the four packages released on this line (Client, Engine, KafkaCancellationNotifier, Patterns); Toolkit stays at 3.0.1-beta3 as in 3.8.0/3.8.1. Tests 62/62 green.

SOE/ROE will pin 3.9.0 in follow-up PRs.

🤖 Generated with Claude Code

FromException no longer suppresses message when it equals reason -
consumers read message directly without needing a reason fallback of
their own. Payloads from message-less throwers now include message
(equal to reason); the field remains additive-optional, version stays 1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ognjenkatic
ognjenkatic merged commit 2f67f87 into v3 Aug 26, 2026
@ognjenkatic
ognjenkatic deleted the CxODEV-1874-message-always-carried-v3 branch August 26, 2026 14:16
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