# Class BuildCacheException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.caching.BuildCacheException

All Implemented Interfaces:
  `Serializable`

public class BuildCacheException extends RuntimeException

`BuildCacheException` is the base class of all exceptions thrown by a `BuildCacheService`.

Since:
  3.3
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BuildCacheException()`
  Creates a new `BuildCacheException`.
  `BuildCacheException(String message)`
  Creates a new `BuildCacheException`.
  `BuildCacheException(String message, Throwable cause)`
  Creates a new `BuildCacheException`.

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

  - ### BuildCacheException

    public BuildCacheException()
    Creates a new `BuildCacheException`.
    Since:
      3.3

  - ### BuildCacheException

    public BuildCacheException(String message)
    Creates a new `BuildCacheException`.
    Since:
      3.3

  - ### BuildCacheException

    public BuildCacheException(String message, Throwable cause)
    Creates a new `BuildCacheException`.
    Since:
      3.3