Package com.github.robtimus.filesystems
Class Messages.PathMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.PathMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvalidPathException
nulCharacterNotAllowed(String path)
Creates an exception that can be thrown if a path contains a nul (\0
) character.IllegalArgumentException
relativizeAbsoluteRelativeMismatch()
Creates an exception that can be thrown ifPath.relativize(Path)
is called and one of the paths is absolute and the other is not.
-
-
-
Method Detail
-
nulCharacterNotAllowed
public InvalidPathException nulCharacterNotAllowed(String path)
Creates an exception that can be thrown if a path contains a nul (\0
) character.- Parameters:
path
- The path that contains a nul character.- Returns:
- The created exception.
-
relativizeAbsoluteRelativeMismatch
public IllegalArgumentException relativizeAbsoluteRelativeMismatch()
Creates an exception that can be thrown ifPath.relativize(Path)
is called and one of the paths is absolute and the other is not.- Returns:
- The created exception.
-
-