SchemaSourceException should carry SourceIdentifier
[yangtools.git] / yang / yang-repo-spi / src / main / java / org / opendaylight / yangtools / yang / model / repo / spi / GuavaSchemaSourceCache.java
index 0b9d1a395c3c1e871b0ea0f89c772c43c9edbbe0..53e096571f82c160eb5281c73c57f3524ee46722 100644 (file)
@@ -68,7 +68,7 @@ public final class GuavaSchemaSourceCache<T extends SourceRepresentation> extend
         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