Skip to content

Exception on execution may be lost #303

Description

@leinad75

In class AbstrSyncDockerCmdExec there is a finally block which throws an exception. This could hide an exception which is thrown in the try block, in case the close statement throws an error.

    } finally {
        try {
            command.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

The original exception must not lost

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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