Skip to content

Include original exception in new exception in on_communication_failure #13

@dentarg

Description

@dentarg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions