public class FilterParameterizationNotSupportedException extends PipelinedComparatorException
Thrown to report a problem with XSLT filter parameterization. The JAXP standard supports pull-mode input filtering using the XMLFilter interface. Unfortunately this class does not allow access to the underlying Transformer object and thus the setting of parameters.
However, certain XSLT processor implementations do support a getTransformer() method. We will attempt to invoke this method using Java reflection where it is available. If an input filter parameter is used and the method is not present on the implementation this exception will be thrown.
XSLT processor implementations which support the getTransformer method and which should not throw this exception include:
XSLT implementations where this exception could be thrown include:
If there is any doubt as to which processor is being used when this exception arises the FilterParameterizationNotSupportedException.getProcessorClass()
method can
be used. The underlying throwable, available through getCause()
will usually be a
NoSuchMethodException
and may provide further details.
Constructor and Description |
---|
FilterParameterizationNotSupportedException(java.lang.String message,
java.lang.Throwable t,
java.lang.Class<?> processorClass)
Creates a new FilterParameterizationNotSupportedException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getProcessorClass()
Reports the implementation class used for the XSLT processor associated with an XMLFilter or TransformerHandler.
|
getCause, getThrowable
public FilterParameterizationNotSupportedException(java.lang.String message, java.lang.Throwable t, java.lang.Class<?> processorClass)
message
- The exception message Stringt
- A nested throwable should it have lead to or caused this exceptionprocessorClass
- the class of the XSLT processor implementationCopyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.