Skip to content

Store failure exception with cause on result#220

Open
branson-simplethread wants to merge 1 commit into
sunny:mainfrom
branson-simplethread:capture-exception-on-fail
Open

Store failure exception with cause on result#220
branson-simplethread wants to merge 1 commit into
sunny:mainfrom
branson-simplethread:capture-exception-on-fail

Conversation

@branson-simplethread

Copy link
Copy Markdown

Hello! 👋

The goal of this change is to make raised exceptions available to the caller of Actor#result. Additionally, exceptions rescued with fail_on are captured as the cause of the configured failure class.

I'm not too attached to the implementation here, so I'd appreciate your thoughts! But I found this necessary for some work I'm doing and had to patch ServiceActor::Failable.

@branson-simplethread branson-simplethread force-pushed the capture-exception-on-fail branch from 92040c3 to 582fd62 Compare June 14, 2026 19:28
@branson-simplethread branson-simplethread force-pushed the capture-exception-on-fail branch from 582fd62 to 0a437cf Compare June 14, 2026 19:34
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