package org.simantics.graph.db.old; import java.util.Set; import org.simantics.db.exception.DatabaseException; public class OldMissingDependencyException extends DatabaseException { private static final long serialVersionUID = -1579450497603555931L; private final OldTransferableGraphImportProcess1 process; public OldMissingDependencyException(OldTransferableGraphImportProcess1 process) { super(createMessage(process)); this.process = process; } private static String createMessage(OldTransferableGraphImportProcess1 process) { StringBuilder b = new StringBuilder(); b.append("The following references were not found:\r\n"); for(String missing : process.missingExternals) { b.append(" -" + missing + "\r\n"); } return b.toString(); } public Set getMissingURIs() { return process.missingExternals; } }