Package org.gradle

## Class BuildResult

- java.lang.Object
- - org.gradle.BuildResult

-     public class BuildResult
      extends java.lang.Object

  A `BuildResult` packages up the result of a build.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BuildResult​(java.lang.String action, Gradle gradle, java.lang.Throwable failure)` |
    `BuildResult​(Gradle gradle, java.lang.Throwable failure)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getAction()` | The action performed by this build.
    `java.lang.Throwable` | `getFailure()` |
    `Gradle` | `getGradle()` |
    `BuildResult` | `rethrowFailure()` | Rethrows the build failure.

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

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

- - ### Constructor Detail

    - #### BuildResult

          public BuildResult​(@Nullable
                             Gradle gradle,
                             @Nullable
                             java.lang.Throwable failure)

    - #### BuildResult

          public BuildResult​(java.lang.String action,
                             @Nullable
                             Gradle gradle,
                             @Nullable
                             java.lang.Throwable failure)

  - ### Method Detail

    - #### getGradle

          @Nullable
          public Gradle getGradle()

    - #### getFailure

          @Nullable
          public java.lang.Throwable getFailure()

    - #### getAction

          public java.lang.String getAction()

      The action performed by this build. Either `Build` or `Configure`.

    - #### rethrowFailure

          public BuildResult rethrowFailure()

      Rethrows the build failure. Does nothing if there was no build failure.