You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
Include original exception in new exception in on_communication_failure #13
Not sure how we should solve this. There is no Exception#cause= method. We could implement our own on the error classes, but would be nice if there was a way to avoid that :)
At https://github.com/twingly/ecco/blob/v0.5.0/lib/ecco/lifecycle_failure_listener.rb#L9-L12 we get an exception from Java, and create a new Ruby exception which we return to the user with the message from the old exception.
Often the message is
nil, so it would be useful to also include the original exception, to help the user understand what's going on.Like Ruby does since 2.1 with Exception Causes.