public class PartialSuccessException extends 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(Message<?> message,
String description,
Throwable cause,
Collection<?> partialResults,
Collection<?> derivedInput) |
Modifier and Type | Method and Description |
---|---|
Collection<?> |
getDerivedInput()
|
<T> Collection<T> |
getDerivedInput(Class<T> clazz)
Convenience version of
getDerivedInput() to avoid casting |
Collection<?> |
getPartialResults()
|
<T> Collection<T> |
getPartialResults(Class<T> clazz)
Convenience version of
getPartialResults() to avoid casting |
String |
toString() |
getFailedMessage
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public PartialSuccessException(Message<?> message, String description, Throwable cause, Collection<?> partialResults, 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 Collection<?> getPartialResults()
public Collection<?> getDerivedInput()
public <T> Collection<T> getPartialResults(Class<T> clazz)
getPartialResults()
to avoid castingT
- the result type.clazz
- the type.public <T> Collection<T> getDerivedInput(Class<T> clazz)
getDerivedInput()
to avoid castingT
- the type of input.clazz
- the type.public String toString()
toString
in class MessagingException