~ralf-claussnitzer-deactivatedaccount/goobi-production/1.10.x

« back to all changes in this revision

Viewing changes to Goobi/src/de/sub/goobi/metadaten/copier/MetadataPathSelector.java

  • Committer: Henning Gerhardt
  • Date: 2014-11-14 12:28:25 UTC
  • mfrom: (520.2.15)
  • Revision ID: git-v1:a20401d39141649b31d2f22e3ebdcd95fabd26ad
Merge remote-tracking branch 'matthias-ronge/issue_172' into 1.10.x

Conflicts:
        Goobi/src/de/sub/goobi/metadaten/copier/MetadataPathSelector.java

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
                                                + " because it isn’t allowed by the rule set.");
214
214
                        } catch (TypeNotAllowedForParentException e) {
215
215
                                throw new UnreachableCodeException("TypeNotAllowedForParentException is never thrown"); // see https://github.com/goobi/goobi-ugh/issues/2
 
216
                        } catch (Exception e) {
 
217
                                // copy rule failed, skip it
 
218
                                LOG.debug(
 
219
                                                "Cannot create structural element " + docStructType + " as child of "
 
220
                                                                + (logicalNode.getType() != null ? logicalNode.getType().getName() : "without type")
 
221
                                                                + ": Accessing the rule set failed with exception: "
 
222
                                                                + (e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName()), e);
 
223
                                return;
216
224
                        }
217
225
                }
218
226
                selector.createOrOverwrite(data, subnode, value);