add InvalidPathException into java doc.