public class FilterProcessingSingleException extends FilterProcessingException
An exception indicating a problem when applying a single filter to a pipeline input or output. With a single filter it is possible to report its position relative to the other filters in the chain (its 'aggregate position') and also a representation of its name such as a systemId for a URL, a filename or a classname.
A mechanism is provided to allow parameters to be used to identify XsltExecutable based filters. If the filter declares a parameter with name 'pipelineProgressId' then its value will be reported as the filter source in exceptions.
PipelineProgressListener
,
Serialized FormConstructor and Description |
---|
FilterProcessingSingleException(java.lang.String message,
java.lang.Throwable t,
PipelineIOIdentifier locationIdentifier,
int filterPosition,
java.lang.String filterSrc)
Create a new FilterProcessingSingleException.
|
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.
|
getLocationId
getCause, getThrowable
public FilterProcessingSingleException(java.lang.String message, java.lang.Throwable t, PipelineIOIdentifier locationIdentifier, int filterPosition, java.lang.String filterSrc)
message
- the exception error messaget
- a nested causelocationIdentifier
- identifier of the filter chainfilterPosition
- the filter positionfilterSrc
- a string representation of the filterpublic java.lang.String getFilterSource()
public int getAggregatePosition()