FailedModelResult (Gradle API 2.14)
Date: 2016-06-14

Package: org.gradle.tooling.connection

## [Java] Interface FailedModelResult<T>

- org.gradle.tooling.connection.ModelResult

- All Superinterfaces:
    ModelResult

  The result of a failed model request.

  Parameters:
    `` - Type of model in the result
  Since:
    2.13

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `BuildIdentifier` | `getBuildIdentifier()` Identifier of the build that originated this failure.
    `ProjectIdentifier` | `getProjectIdentifier()` Identifier of the project that originated this failure, if any.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface ModelResult` | `getFailure, getModel`

- - ### Method Detail

    - #### public BuildIdentifier getBuildIdentifier()

      Identifier of the build that originated this failure.

      Returns:
        the build identifier, never null.

    - #### @Nullable public ProjectIdentifier getProjectIdentifier()

      Identifier of the project that originated this failure, if any.

      Returns:
        the project identifier, or null if this failure did not originate from a particular project.