diff --git a/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/IrodsUserDatasetSession.java b/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/IrodsUserDatasetSession.java index 4e204d29b..5c1336fea 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/IrodsUserDatasetSession.java +++ b/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/IrodsUserDatasetSession.java @@ -206,7 +206,7 @@ public Map getUserDatasets(Long userId) try { out.put(dsId, collectionToDataset(dsId, userId, ds)); } - catch (BrokenDatasetException e) { + catch (BrokenDatasetException | MissingMetaException e) { // simply log error and omit broken dataset from list; should not be a fatal exception LOG.error("Found broken dataset [ID = " + dsId + "]", e); } @@ -777,7 +777,7 @@ static Supplier missingMeta( final ICatNode node, final String key ) { - return () -> new WdkModelException(String.format(MISSING_META, + return () -> new MissingMetaException(String.format(MISSING_META, node.getPath(), key)); } diff --git a/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/MissingMetaException.java b/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/MissingMetaException.java new file mode 100644 index 000000000..33422c5c9 --- /dev/null +++ b/Model/src/main/java/org/gusdb/wdk/model/user/dataset/irods/MissingMetaException.java @@ -0,0 +1,8 @@ +package org.gusdb.wdk.model.user.dataset.irods; + +import org.gusdb.wdk.model.WdkModelException; + +public class MissingMetaException extends WdkModelException { + public MissingMetaException(String format) { + } +}