# 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()`
  `BuildCacheException(String message)`
  `BuildCacheException(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

  - ### BuildCacheException

    public BuildCacheException()

  - ### BuildCacheException

    public BuildCacheException(String message)

  - ### BuildCacheException

    public BuildCacheException(String message, Throwable cause)