Class Messages.PathMessages

  • Enclosing class:
    Messages

    public static final class Messages.PathMessages
    extends Object
    A utility class for providing translated messages and exceptions for paths.
    Author:
    Rob Spoor
    • 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 if Path.relativize(Path) is called and one of the paths is absolute and the other is not.
        Returns:
        The created exception.