# Class BuildCancelledException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.tooling.GradleConnectionException
org.gradle.tooling.BuildCancelledException

All Implemented Interfaces:
  `Serializable`

public class BuildCancelledException extends GradleConnectionException
Thrown when a `LongRunningOperation` is cancelled before the operation completes.

Since:
  2.1
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BuildCancelledException(String message)`
  `BuildCancelledException(String message, Throwable throwable)`

- ## Method Summary

  ### Methods inherited from class GradleConnectionException

  `getFailures`

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### BuildCancelledException

    public BuildCancelledException(String message)

  - ### BuildCancelledException

    public BuildCancelledException(String message, Throwable throwable)