Skip to content

Let a /set callback refuse a value with SetRefused - #117

Merged
dcj merged 3 commits into
mainfrom
gh-102-set-refused
Nov 11, 2026
Merged

dcj merged 3 commits into
mainfrom
gh-102-set-refused

Conversation

@dcj

@dcj dcj commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Closes #102.

A set callback (sync, or the coroutine an async one returns) raises ebus_sdk.SetRefused; the property logs reason=propertySetRefused at info instead of propertySetCallbackException. ObservableProperty.set_entity() re-raises it and still swallows other exceptions, so declaration-built properties refuse the same way. $target is untouched (#101).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC

dcj and others added 3 commits November 11, 2026 15:27
Raising ebus_sdk.SetRefused from a set callback (sync, or the awaited
coroutine) logs reason=propertySetRefused at info instead of a callback
exception. ObservableProperty.set_entity re-raises it, so declaration-
built properties refuse the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUQ6apRySRNW8y3ppJMdJC
@dcj
dcj merged commit 0d3e726 into main Nov 11, 2026
5 checks passed
@dcj
dcj deleted the gh-102-set-refused branch November 11, 2026 23:43
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.

Let a /set callback refuse a value

1 participant