# Class CircularReferenceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.CircularReferenceException

All Implemented Interfaces:
  `Serializable`

public class CircularReferenceException extends GradleException

A `CircularReferenceException` is thrown if circular references exists between tasks, the project evaluation order or the project dependsOn order.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CircularReferenceException(String message)`
  `CircularReferenceException(String message, Throwable cause)`

- ## Method Summary

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

  - ### CircularReferenceException

    public CircularReferenceException(String message)

  - ### CircularReferenceException

    public CircularReferenceException(String message, Throwable cause)