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:
java.io.Serializable
public class PartialSuccessException
extends org.springframework.messaging.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
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PartialSuccessException(org.springframework.messaging.Message<?> message, java.lang.String description, java.lang.Throwable cause, java.util.Collection<?> partialResults, java.util.Collection<?> derivedInput) -
Method Summary
Modifier and Type Method Description java.util.Collection<?>getDerivedInput()<T> java.util.Collection<T>getDerivedInput(java.lang.Class<T> clazz)Convenience version ofgetDerivedInput()to avoid castingjava.util.Collection<?>getPartialResults()<T> java.util.Collection<T>getPartialResults(java.lang.Class<T> clazz)Convenience version ofgetPartialResults()to avoid castingjava.lang.StringtoString()Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
-
Constructor Details
-
PartialSuccessException
public PartialSuccessException(org.springframework.messaging.Message<?> message, java.lang.String description, java.lang.Throwable cause, java.util.Collection<?> partialResults, java.util.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
public java.util.Collection<?> getPartialResults()- Returns:
- the partial results
-
getDerivedInput
public java.util.Collection<?> getDerivedInput()- Returns:
- the derived input.
-
getPartialResults
public <T> java.util.Collection<T> getPartialResults(java.lang.Class<T> clazz)Convenience version ofgetPartialResults()to avoid casting- Type Parameters:
T- the result type.- Parameters:
clazz- the type.- Returns:
- the partial results.
-
getDerivedInput
public <T> java.util.Collection<T> getDerivedInput(java.lang.Class<T> clazz)Convenience version ofgetDerivedInput()to avoid casting- Type Parameters:
T- the type of input.- Parameters:
clazz- the type.- Returns:
- the partial results.
-
toString
public java.lang.String toString()- Overrides:
toStringin classorg.springframework.messaging.MessagingException
-