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 Form| Constructor 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, toStringpublic 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–2018 Pivotal Software, Inc.. All rights reserved.