I18n msg = GraphI18n.inMemoryConnectorRequestsMustHavePathOrUuid;
request.setError(new IllegalArgumentException(msg.text()));
return null;
}
// Missing path, and could not find by UUID ...
request.setError(new PathNotFoundException(location, pathFactory.createRootPath(),
GraphI18n.inMemoryNodeDoesNotExist.text(path)));
return null;
}
// Could not find the node given the supplied path, so find the lowest path that does exist ...
Path lowestExisting = workspace.getLowestExistingPath(path);
request.setError(new PathNotFoundException(location, lowestExisting, GraphI18n.inMemoryNodeDoesNotExist.text(path)));
}
return node;
}