InvalidPathException (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, class: InvalidPathException

Package org.apache.hadoop.fs

# Class InvalidPathException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.hadoop.HadoopIllegalArgumentException
org.apache.hadoop.fs.InvalidPathException

All Implemented Interfaces:
  `Serializable`

@Public @Stable public class InvalidPathException extends HadoopIllegalArgumentException
Path string is invalid either because it has invalid characters or due to other file system specific reasons.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InvalidPathException(String path)`
  Constructs exception with the specified detail message.
  `InvalidPathException(String path, String reason)`
  Constructs exception with the specified detail message.

- ## Method Summary

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### InvalidPathException

    public InvalidPathException(String path)
    Constructs exception with the specified detail message.
    Parameters:
      `path` - invalid path.

  - ### InvalidPathException

    public InvalidPathException(String path, String reason)
    Constructs exception with the specified detail message.
    Parameters:
      `path` - invalid path.
      `reason` - Reason `path` is invalid