Class PartialSuccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.messaging.MessagingException
org.springframework.integration.support.PartialSuccessException
- All Implemented Interfaces:
Serializable
public class PartialSuccessException extends MessagingException
A
MessagingException
thrown when a non-transactional operation is
performing multiple updates from a single message, e.g. an FTP 'mput' operation.- Since:
- 4.2
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PartialSuccessException(Message<?> message, String description, Throwable cause, Collection<?> partialResults, Collection<?> derivedInput)
-
Method Summary
Modifier and Type Method Description Collection<?>
getDerivedInput()
<T> Collection<T>
getDerivedInput(Class<T> clazz)
Convenience version ofgetDerivedInput()
to avoid castingCollection<?>
getPartialResults()
<T> Collection<T>
getPartialResults(Class<T> clazz)
Convenience version ofgetPartialResults()
to avoid castingString
toString()
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
PartialSuccessException
public PartialSuccessException(Message<?> message, String description, Throwable cause, Collection<?> partialResults, Collection<?> derivedInput)- Parameters:
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 usingmput
.
-
-
Method Details
-
getPartialResults
- Returns:
- the partial results
-
getDerivedInput
- Returns:
- the derived input.
-
getPartialResults
Convenience version ofgetPartialResults()
to avoid casting- Type Parameters:
T
- the result type.- Parameters:
clazz
- the type.- Returns:
- the partial results.
-
getDerivedInput
Convenience version ofgetDerivedInput()
to avoid casting- Type Parameters:
T
- the type of input.- Parameters:
clazz
- the type.- Returns:
- the partial results.
-
toString
- Overrides:
toString
in classMessagingException
-