Class InsecureRecursiveDeleteException

  • All Implemented Interfaces:
    java.io.Serializable

    @GwtIncompatible
    @J2ObjCIncompatible
    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 (but only since 33.4.0 in the Android flavor)
    Author:
    Colin Decker
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InsecureRecursiveDeleteException​(@Nullable java.lang.String file)
      Constructs a new InsecureRecursiveDeleteException for the specified file.
    • 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​(@Nullable java.lang.String file)
        Constructs a new InsecureRecursiveDeleteException for the specified file.