public class FilterParameterizationException extends PipelinedComparatorException
Thrown to indicate that a filter parameterization problem has been detected.
In order to set parameters on Java filters, they should be coded to provide methods which allow parameter setting. The methods should have a name which is comprised of "set" concatenated with the parameter name and they should take a single String parameter.
A number of issues can arise with the location and invocation of the parameter setting method. The underlying exception is
available through getCause()
and will typically be one of:
NoSuchMethodException
SecurityException
IllegalAccessException
InvocationTargetException
Ideally these exceptions should be thrown when parameters are associated with the ParameterizedFilter. However, due to invocation issues they may not be reported until the filter lists are associated with the PipelinedComparator.
PipelinedComparator#setInputFilters(java.util.List)
,
PipelinedComparator#setOutputFilters(java.util.List)
,
Serialized FormConstructor and Description |
---|
FilterParameterizationException(java.lang.String message,
java.lang.String parameterName)
Creates a new FilterParameterizationException.
|
FilterParameterizationException(java.lang.String message,
java.lang.Throwable t,
java.lang.String parameterName)
Creates a new FilterParameterizationException.
|
FilterParameterizationException(java.lang.String message,
java.lang.Throwable t,
java.lang.String parameterName,
int aggregatePosition,
PipelineIOIdentifier locationId)
Creates a new FilterParameterizationException.
|
Modifier and Type | Method and Description |
---|---|
int |
getAggregatePosition()
Identifies which filter within a filter chain is causing the problem.
|
PipelineIOIdentifier |
getLocationId()
Identifies which filter chain contains the filter causing the problem.
|
java.lang.String |
getParameterName()
Provides the name of the parameter that was causing the problem.
|
getCause, getThrowable
public FilterParameterizationException(java.lang.String message, java.lang.Throwable t, java.lang.String parameterName)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionparameterName
- the parameter which is at faultpublic FilterParameterizationException(java.lang.String message, java.lang.String parameterName)
message
- The exception message StringparameterName
- the parameter which is at faultpublic FilterParameterizationException(java.lang.String message, java.lang.Throwable t, java.lang.String parameterName, int aggregatePosition, PipelineIOIdentifier locationId)
message
- the Exception message Stringt
- a nested Throwable that caused this ExceptionparameterName
- the name of the parameter which is at faultaggregatePosition
- the position of the filter within the filter chainlocationId
- the filter chain identifierpublic java.lang.String getParameterName()
public PipelineIOIdentifier getLocationId()
Identifies which filter chain contains the filter causing the problem.
N.B. This information is only available if the Exception was thrown when using the
PipelinedComparatorS9
or DXPConfigurationS9
public int getAggregatePosition()
Identifies which filter within a filter chain is causing the problem.
Filters are numbered from zero according to usual Java aggregate conventions.
N.B. This information is only available if the Exception was thrown when using the
PipelinedComparatorS9
or DXPConfigurationS9