public class FilterConfigurationException extends PipelinedComparatorException
Thrown to indicate a failure in creating or configuring an XSLT-based SAX event filter.
Pipeline input or output filters can be implemented in Java or XSLT. When XSLT is used, filter setting methods allow Templates
Objects, Files and URLs to specify the location of an XSLT filter. These filters should then be converted into an
XMLFilterImpl
or TransformerHandler
as appropriate. However, a
number of problems can arise during XSLT compilation or filter instantiation. This exception allows the underlying cause to be
determined from a nested exception (through getCause()
) and also allows details of aggregatePosition to be
determined when the filter was supplied as part of an aggregate parameter.
The getCause()
method will usually provide access to a
TransformerConfigurationException
with more information about the underlying cause. This in turn
may provide a further getCause()
method providing further
information (for example a FileNotFoundException
).
TransformerConfigurationException
,
Serialized FormConstructor and Description |
---|
FilterConfigurationException(java.lang.String message,
java.lang.Throwable t,
java.lang.String filterSource)
Creates a new FilterConfigurationException.
|
FilterConfigurationException(java.lang.String message,
java.lang.Throwable t,
java.lang.String filterSource,
int aggregatePosition)
Creates a new FilterConfigurationException.
|
FilterConfigurationException(java.lang.String message,
java.lang.Throwable t,
java.lang.String filterSource,
int aggregatePosition,
PipelineIOIdentifier pipelineId)
Creates a new FilterConfigurationException.
|
Modifier and Type | Method and Description |
---|---|
int |
getAggregatePosition()
Reports the member of a filter aggregate which caused the problem.
|
java.lang.String |
getFilterSource()
Provides information about the origins of the filter, for example the file or URL from which the XSLT was loaded.
|
PipelineIOIdentifier |
getPipelineId()
Returns the identity of the filter chain in which the problem occurred.
|
getCause, getThrowable
public FilterConfigurationException(java.lang.String message, java.lang.Throwable t, java.lang.String filterSource, int aggregatePosition, PipelineIOIdentifier pipelineId)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionfilterSource
- identifies the original XSLT if possibleaggregatePosition
- an index into an aggregate of filters to identify the one at faultpipelineId
- the pipeline identifierpublic FilterConfigurationException(java.lang.String message, java.lang.Throwable t, java.lang.String filterSource, int aggregatePosition)
message
- the Exception message Stringt
- a nested Throwable that caused or lead to this ExceptionfilterSource
- identifies the original XSLT if possibleaggregatePosition
- an index into an aggregate of filters to identify the one at faultpublic FilterConfigurationException(java.lang.String message, java.lang.Throwable t, java.lang.String filterSource)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionfilterSource
- identifies the original XSLT if possiblepublic java.lang.String getFilterSource()
public int getAggregatePosition()
public PipelineIOIdentifier getPipelineId()