public class FilterClassInstantiationException extends PipelinedComparatorException
Thrown to indicate that a filter class instantiation problem has been detected.
SAX event filters implemented in Java need to be instantiated. A class, rather than an object, is used as a parameter as in
some cases two distinct object instances are required, one for each comparator input. In the process of creating the filter
object exceptions such as InstantiationException
or IllegalAccessException
may be thrown. This exception class
wraps these exceptions and also provides information about possible aggregate indicies, when use is made of filter lists or
arrays.
PipelinedComparator#setInputFilters(Class[])
,
PipelinedComparator#setInputFilters(java.util.List)
,
PipelinedComparator#setOutputFilters(Class[])
,
PipelinedComparator#setOutputFilters(java.util.List)
,
Serialized FormConstructor and Description |
---|
FilterClassInstantiationException(java.lang.String message,
java.lang.Throwable t,
java.lang.Class<?> filterClass)
Creates a new FilterClassInstantiationException.
|
FilterClassInstantiationException(java.lang.String message,
java.lang.Throwable t,
java.lang.Class<?> filterClass,
int aggregatePosition)
Creates a new FilterClassInstantiationException.
|
FilterClassInstantiationException(java.lang.String message,
java.lang.Throwable t,
java.lang.Class<?> filterClass,
int aggregatePosition,
PipelineIOIdentifier pipelineId)
Creates a new FilterClassInstantiationException.
|
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 class which cannot be used as a filter.
|
PipelineIOIdentifier |
getLocationId()
Returns the identity of the filter chain in which the problem occurred.
|
getCause, getThrowable
public FilterClassInstantiationException(java.lang.String message, java.lang.Throwable t, java.lang.Class<?> filterClass)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionfilterClass
- the class which cannot be instantiatedpublic FilterClassInstantiationException(java.lang.String message, java.lang.Throwable t, java.lang.Class<?> filterClass, int aggregatePosition)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionfilterClass
- the class which cannot be instantiatedaggregatePosition
- an index into an aggregate of filters to identify the one at faultpublic FilterClassInstantiationException(java.lang.String message, java.lang.Throwable t, java.lang.Class<?> filterClass, int aggregatePosition, PipelineIOIdentifier pipelineId)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionfilterClass
- the class which cannot be instantiatedaggregatePosition
- an index into an aggregate of filters to identify the one at faultpipelineId
- specifies which input or output filter chain caused the problempublic PipelineIOIdentifier getLocationId()
public java.lang.Class<?> getFilterClass()
public int getAggregatePosition()