public class UnsupportedFilterListMemberException extends PipelinedComparatorException
Thrown to indicate the use of an unsupported filter in a filter List.
The PipelinedComparator can be configured with lists of input and output filters. When these methods are used there are certain constraints on the Objects which can be included in the List. If an unsupported Object is found this exception is thrown. Information about the supplied class of the object and its list position can be obtained through provided methods.
PipelinedComparator#setInputFilters(java.util.List)
,
PipelinedComparator#setOutputFilters(java.util.List)
,
Serialized FormConstructor and Description |
---|
UnsupportedFilterListMemberException(java.lang.String message,
java.lang.Class<?> filterClass)
Creates a new UnsupportedFilterListMemberException.
|
UnsupportedFilterListMemberException(java.lang.String message,
java.lang.Class<?> filterClass,
int aggregatePosition)
Creates a new FilterClassIncompatibilityException.
|
UnsupportedFilterListMemberException(java.lang.String message,
java.lang.Class<?> filterClass,
int aggregatePosition,
PipelineIOIdentifier locationId)
Creates a new FilterClassIncompatibilityException.
|
Modifier and Type | Method and Description |
---|---|
int |
getAggregatePosition()
Reports the member of an aggregate which caused the problem.
|
java.lang.Class<?> |
getFilterClass()
Provides information about the Object which cannot be used as a filter.
|
PipelineIOIdentifier |
getLocationId()
Returns the identity of the filter chain in which the error occurs.
|
getCause, getThrowable
public UnsupportedFilterListMemberException(java.lang.String message, java.lang.Class<?> filterClass)
message
- The exception message StringfilterClass
- the class of the object which cannot be used as a filterpublic UnsupportedFilterListMemberException(java.lang.String message, java.lang.Class<?> filterClass, int aggregatePosition)
message
- The exception message StringfilterClass
- the class of the object which cannot be used as a filteraggregatePosition
- the index into the List of the filter causing the problempublic UnsupportedFilterListMemberException(java.lang.String message, java.lang.Class<?> filterClass, int aggregatePosition, PipelineIOIdentifier locationId)
message
- The exception message StringfilterClass
- the class of the object which cannot be used as a filteraggregatePosition
- the index into the List of the filter causing the problemlocationId
- specifies which filter chain causes the problempublic PipelineIOIdentifier getLocationId()
public java.lang.Class<?> getFilterClass()
public int getAggregatePosition()