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
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, Artem Bilan
- See Also:
-
Constructor Summary
ConstructorDescriptionPartialSuccessException
(Message<?> message, String description, Throwable cause, Collection<?> partialResults, Collection<?> derivedInput) -
Method Summary
Modifier and TypeMethodDescriptionCollection<?>
<T> Collection<T>
getDerivedInput
(Class<T> clazz) Convenience version ofgetDerivedInput()
to avoid casting.Collection<?>
<T> Collection<T>
getPartialResults
(Class<T> clazz) Convenience version ofgetPartialResults()
to avoid casting.toString()
Methods inherited from class org.springframework.messaging.MessagingException
getFailedMessage
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
-