Package org.gradle.api.problems.locations

## Class TaskPathLocation

- java.lang.Object
- - org.gradle.api.problems.locations.TaskPathLocation

- All Implemented Interfaces:
    `ProblemLocation`

      @Incubating
      public class TaskPathLocation
      extends java.lang.Object
      implements ProblemLocation

  A problem location that stores a task path if the problem was emitted meanwhile executing a task.
  Since:
    8.5

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TaskPathLocation​(Path identityPath)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Path` | `getIdentityPath()` |
    `java.lang.String` | `getType()` | Returns an identifier of the location type.

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

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

- - ### Constructor Detail

    - #### TaskPathLocation

          public TaskPathLocation​(Path identityPath)

  - ### Method Detail

    - #### getType

          public java.lang.String getType()

      Description copied from interface: `ProblemLocation`
      Returns an identifier of the location type.

      As locations will be serialized into a JSON format, this identifier is used to distinguish between different location types.

      Specified by:
        `getType` in interface `ProblemLocation`

    - #### getIdentityPath

          public Path getIdentityPath()