final T present = cache.getIfPresent(sourceId);
return present != null ? FluentFutures.immediateFluentFuture(present)
: FluentFutures.immediateFailedFluentFuture(
- new MissingSchemaSourceException("Source not found", sourceId));
+ new MissingSchemaSourceException(sourceId, "Source not found"));
}
@Override