We really are failing, throw an IllegalStateException rather than
a RuntimeException.
Change-Id: I9a77ff1d537f4836eabbcebf364a070156848949
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
sc = Optional.of(f.get());
break;
} catch (final InterruptedException e) {
sc = Optional.of(f.get());
break;
} catch (final InterruptedException e) {
- throw new RuntimeException("Interrupted while assembling schema context", e);
+ throw new IllegalStateException("Interrupted while assembling schema context", e);
} catch (final ExecutionException e) {
LOG.info("Failed to fully assemble schema context for {}", sources, e);
final Throwable cause = e.getCause();
} catch (final ExecutionException e) {
LOG.info("Failed to fully assemble schema context for {}", sources, e);
final Throwable cause = e.getCause();
try {
return future.get();
} catch (final InterruptedException e) {
try {
return future.get();
} catch (final InterruptedException e) {
- throw new RuntimeException("Interrupted while waiting for SchemaContext assembly", e);
+ throw new IllegalStateException("Interrupted while waiting for SchemaContext assembly", e);
} catch (final ExecutionException e) {
final Throwable cause = e.getCause();
if (cause instanceof SchemaResolutionException) {
} catch (final ExecutionException e) {
final Throwable cause = e.getCause();
if (cause instanceof SchemaResolutionException) {