Skip to content

Conversation

@pdoerner
Copy link
Contributor

@pdoerner pdoerner commented Dec 5, 2025

What changed?
Added Temporal failure representations for Nexus errors.

Why?
Consistency with other Temporal APIs and to make it easier to handle payloads.

Breaking changes
Not explicitly, but server and SDK will need to be able to handle both error formats based on capabilities field.

Server PR
temporalio/temporal#8799

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

LGTM, assuming that this won't be merged until it's proven to work.

Comment on lines 130 to 131
// The operation completed unsuccessfully (failed or canceled).
UnsuccessfulOperationError operation_error = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we mark this as deprecated?

Copy link
Member

Choose a reason for hiding this comment

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

Yes!

Async async_success = 2;
// The operation completed unsuccessfully (failed or canceled).
UnsuccessfulOperationError operation_error = 3;
// Deprecated. Use the failure variant instead.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
// Deprecated. Use the failure variant instead.
// Deprecated. Use the failure variant instead if temporal_failure_responses was true on the request.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I saw your nit too late.

@bergundy bergundy merged commit f66d869 into master Feb 10, 2026
4 checks passed
@bergundy bergundy deleted the nexus-error-messages branch February 10, 2026 18:23
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.

4 participants