Skip to content

Commit

Permalink
Handle missing meta
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgaldi committed Dec 4, 2023
1 parent 1db56de commit b544990
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public Map<Long, UserDataset> 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);
}
Expand Down Expand Up @@ -777,7 +777,7 @@ static Supplier<WdkModelException> missingMeta(
final ICatNode node,
final String key
) {
return () -> new WdkModelException(String.format(MISSING_META,
return () -> new MissingMetaException(String.format(MISSING_META,
node.getPath(), key));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
}
}

0 comments on commit b544990

Please sign in to comment.