Add a new AlarmOutcome and exceptionDescription for AlarmResult#6345
Add a new AlarmOutcome and exceptionDescription for AlarmResult#6345
Conversation
|
Now let me post the review. Looking at the analysis:
The one real issue I see is the Looking at the diff for
The After careful review, I think this PR is well-structured and correctly solves the problem. The design choice to split LGTM |
We want to propagate the exception details via runAlarm. But because alarms use a ForkedPromise we can't copy the kj::String. For this, we setup a new alarmOutcome, that's copyable, and updated the AlarmResult to only include the exceptionDescription in the path where it's not copied
d66eabd to
6607f2d
Compare
| EventOutcome outcome = EventOutcome::UNKNOWN; | ||
| }; | ||
|
|
||
| struct AlarmResult { |
There was a problem hiding this comment.
Why not embed AlarmOutcome instead of duplicating fields? Is it to simplify assignments or another reason I don't see? (that's fine, just wanted to check)
We want to propagate the exception details via
runAlarm. But because alarms use aForkedPromisewe can't copy thekj::String.We set up a new
alarmOutcome, that's copyable, and updated theAlarmResultto only include theexceptionDescriptionin the path where it's not copied