Skip to content

ExecutorService exception handling #40

Open
@tpietzsch

Description

@tpietzsch

In several places we have code like this:

for ( final Future< Void > f : futures )
{
	try
	{
		f.get();
	}
	catch ( final InterruptedException e )
	{
		e.printStackTrace();
	}
	catch ( final ExecutionException e )
	{
		e.printStackTrace();
	}
}

This should be changed from e.printStackTrace() to something meaningful.

InterruptedException should Thread.currentThread().interrupt() and end method as fast as possible.

What should we do with ExecutionException? Just declare and throw it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions