Class InsecureRecursiveDeleteException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class InsecureRecursiveDeleteException
    extends java.nio.file.FileSystemException
    Exception indicating that a recursive delete can't be performed because the file system does not have the support necessary to guarantee that it is not vulnerable to race conditions that would allow it to delete files and directories outside of the directory being deleted (i.e., SecureDirectoryStream is not supported).

    RecursiveDeleteOption.ALLOW_INSECURE can be used to force the recursive delete method to proceed anyway.

    Since:
    21.0
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.nio.file.FileSystemException

        getFile, getMessage, getOtherFile, getReason
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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 Detail

      • InsecureRecursiveDeleteException

        public InsecureRecursiveDeleteException​(@CheckForNull
                                                java.lang.String file)