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();
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) {