Class PathNotValidException

java.lang.Object
java.lang.Throwable
java.lang.Exception
me.pauleff.common.exceptions.PathNotValidException
All Implemented Interfaces:
Serializable

public class PathNotValidException extends Exception
Indicates that a filesystem path is missing or otherwise unsuitable for use.
See Also:
  • Constructor Details

    • PathNotValidException

      public PathNotValidException(String explanation, Path path)
      Creates an exception for the given path with a custom explanation.

      The detail message is formatted as explanation: path.

      Parameters:
      explanation - a short description of why the path is invalid
      path - the invalid path
    • PathNotValidException

      public PathNotValidException(Path path)
      Creates an exception for a path that does not exist.
      Parameters:
      path - the missing path
  • Method Details

    • path

      public Path path()
      Returns the path that caused this exception.
      Returns:
      the invalid path