Skip to content

[backport foxy] Log error instead of throwing exception in Transition and State reset() mark no except (#1297)#1378

Merged
brawner merged 2 commits intofoxyfrom
brawner/rclcpp_lifecycle-backport-1297
Oct 5, 2020
Merged

[backport foxy] Log error instead of throwing exception in Transition and State reset() mark no except (#1297)#1378
brawner merged 2 commits intofoxyfrom
brawner/rclcpp_lifecycle-backport-1297

Conversation

@brawner
Copy link
Copy Markdown
Contributor

@brawner brawner commented Oct 5, 2020

Backports #1297 for foxy

…(), mark no except (#1297)

* Catch potential exception in destructor and log

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Remove thrown error from reset and mark it no except

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner brawner requested a review from jacobperron October 5, 2020 18:42
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented Oct 5, 2020

@jacobperron should I just backport the fix and not the API change? (marking reset() here noexcept)

@jacobperron
Copy link
Copy Markdown
Member

@ros-pull-request-builder retest this please

@jacobperron
Copy link
Copy Markdown
Member

should I just backport the fix and not the API change? (marking reset() here noexcept)

Good question. It isn't clear to me if it is guaranteed to be ABI compatible. Perhaps it is safest to remove the noexcept.

Signed-off-by: Stephen Brawner <brawner@gmail.com>
@brawner
Copy link
Copy Markdown
Contributor Author

brawner commented Oct 5, 2020

Testing --packages-select rclcpp_lifecycle

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@brawner brawner merged commit 6e6dd9c into foxy Oct 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the brawner/rclcpp_lifecycle-backport-1297 branch October 5, 2020 22:45
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.

2 participants