List of usage examples for java.nio.file InvalidPathException getInput
public String getInput()
From source file:Test.java
public static void main(String[] args) { try {/* ww w . java2 s .c om*/ Path path = Paths.get("/home\0", "docs", "users.txt"); System.out.println("Absolute path: " + path.toAbsolutePath()); } catch (InvalidPathException ex) { System.out.println("Bad path: [" + ex.getInput() + "] at position " + ex.getIndex()); } }