Shouldn't we throw immediatly, before the calls to getAbsoluteOrRelativePath?