UnableToDeleteFileException (Gradle API 5.6.1)
Date: 2019-09-03

Package org.gradle.api.file

## Class UnableToDeleteFileException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.gradle.api.UncheckedIOException
        - - org.gradle.api.file.UnableToDeleteFileException

- All Implemented Interfaces:
    `Serializable`

      public class UnableToDeleteFileException
      extends UncheckedIOException

  Thrown by Gradle when it is unable to delete a file.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UnableToDeleteFileException​(File file)` | Creates exception with file, a reasonable message is used.
    `UnableToDeleteFileException​(File file, String message)` | Creates exception with file and message.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `File` | `getFile()` |

    - ### 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 Detail

    - #### UnableToDeleteFileException

          public UnableToDeleteFileException​(File file)

      Creates exception with file, a reasonable message is used.

    - #### UnableToDeleteFileException

          @Incubating
          public UnableToDeleteFileException​(File file,
                                             String message)

      Creates exception with file and message.
      Since:
        5.3

  - ### Method Detail

    - #### getFile

          public File getFile()