getRelativePath throws exceptions.
Only string.
Document exceptions.