public class ETagDoesntMatchException extends RuntimeException
ETag
calculated for a particular object does not match an expected one.ETag.verify(org.springframework.data.mapping.PersistentEntity, Object)
,
Serialized FormConstructor and Description |
---|
ETagDoesntMatchException(Object bean,
ETag expected)
Creates a new
ETagDoesntMatchException for the given bean as well as the ETag it was expected to
match. |
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Returns the bean not matching the
ETag . |
ETag |
getExpectedETag()
Returns the
ETag the bean was expected to match. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ETagDoesntMatchException(Object bean, ETag expected)
ETagDoesntMatchException
for the given bean as well as the ETag
it was expected to
match.bean
- must not be null.expected
- must not be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.