Skip to content

WPB-25033: throw ConversationSubsystemError constructors directly in ConversationSubsystem#5348

Open
blackheaven wants to merge 3 commits into
developfrom
gdifolco/WPB-25033-conversation-subsystem-errors-1
Open

WPB-25033: throw ConversationSubsystemError constructors directly in ConversationSubsystem#5348
blackheaven wants to merge 3 commits into
developfrom
gdifolco/WPB-25033-conversation-subsystem-errors-1

Conversation

@blackheaven

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-25033

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

…ConversationSubsystem

Migrate 14 standalone exceptions in Wire.ConversationSubsystem to throw
ConversationSubsystemError constructors directly instead of relying on
mapErrors, and remove the corresponding ErrorS/Error entries and mapError
lines from Wire.ConversationSubsystem.Errors.

Converted (13 singletons + AdminlessConversation): ChannelsNotEnabled,
NotAnMlsConversation, MLSNonEmptyMemberList, NoBindingTeamMembers,
BroadcastLimitExceeded, MLSFederatedOne2OneNotSupported,
CreateConversationCodeConflict, InvalidTarget, MLSClientMismatch,
MLSInvalidLeafNodeIndex, MLSUnsupportedProposal, MLSFederatedResetNotSupported,
InvalidConversationPassword, AdminlessConversation.

TeamNotFound and NonBindingTeam are intentionally left mapped: they are also
thrown by TeamStore/TeamSubsystem and rely on mapErrors. The mapped error
responses are observationally identical; no API, schema, or config change.
@blackheaven
blackheaven requested review from a team as code owners July 20, 2026 10:21
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants