Class ETagDoesntMatchException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.data.rest.webmvc.support.ETagDoesntMatchException
All Implemented Interfaces:
Serializable

public class ETagDoesntMatchException extends RuntimeException
An exception being thrown in case the ETag calculated for a particular object does not match an expected one.
Author:
Oliver Gierke
See Also:
  • Constructor Details

    • ETagDoesntMatchException

      public ETagDoesntMatchException(Object bean, ETag expected)
      Creates a new ETagDoesntMatchException for the given bean as well as the ETag it was expected to match.
      Parameters:
      bean - must not be null.
      expected - must not be null.
  • Method Details

    • getBean

      public Object getBean()
      Returns the bean not matching the ETag.
      Returns:
      the bean
    • getExpectedETag

      public ETag getExpectedETag()
      Returns the ETag the bean was expected to match.
      Returns:
      the expected