public class PartialSuccessException
extends org.springframework.messaging.MessagingException
MessagingException thrown when a non-transactional operation is
performing multiple updates from a single message, e.g. an FTP 'mput' operation.| Constructor and Description |
|---|
PartialSuccessException(org.springframework.messaging.Message<?> message,
java.lang.String description,
java.lang.Throwable cause,
java.util.Collection<?> partialResults,
java.util.Collection<?> derivedInput) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<?> |
getDerivedInput()
|
<T> java.util.Collection<T> |
getDerivedInput(java.lang.Class<T> clazz)
Convenience version of
getDerivedInput() to avoid casting |
java.util.Collection<?> |
getPartialResults()
|
<T> java.util.Collection<T> |
getPartialResults(java.lang.Class<T> clazz)
Convenience version of
getPartialResults() to avoid casting |
java.lang.String |
toString() |
contains, getMessage, getMostSpecificCause, getRootCausepublic PartialSuccessException(org.springframework.messaging.Message<?> message,
java.lang.String description,
java.lang.Throwable cause,
java.util.Collection<?> partialResults,
java.util.Collection<?> derivedInput)
message - the message.description - the description.cause - the cause.partialResults - The subset of multiple updates that were successful before the cause occurred.derivedInput - The collection (usually derived from the message) of input data; e.g. a filtered
list of local files being sent to FTP using mput.public java.util.Collection<?> getPartialResults()
public java.util.Collection<?> getDerivedInput()
public <T> java.util.Collection<T> getPartialResults(java.lang.Class<T> clazz)
getPartialResults() to avoid castingT - the result type.clazz - the type.public <T> java.util.Collection<T> getDerivedInput(java.lang.Class<T> clazz)
getDerivedInput() to avoid castingT - the type of input.clazz - the type.public java.lang.String toString()
toString in class org.springframework.messaging.MessagingException