public class UnsupportedDXPVersionException extends InvalidPipelineException
Used to indicate that the throwing class does not support the DXP version of the loaded DXP file.
This Exception is thrown when the generate method is called on one of the DXPConfiguration classes and the loaded DXP file
contains features that are not supported. An example is the XPath-based attributes when
and xpath
not
being supported by DXPConfiguration
.
The Exception contains information about which version the unsupported features are from and which version the throwing class can support.
Constructor and Description |
---|
UnsupportedDXPVersionException(java.lang.String message,
java.lang.String currentVersion,
java.lang.String supportedVersion)
Creates a new UnsupportedDXPVersionException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrent()
Returns the version of the loaded DXP file.
|
java.lang.String |
getSupported()
Returns the maximum DXP version that the throwing class supports.
|
getCause, getThrowable
public UnsupportedDXPVersionException(java.lang.String message, java.lang.String currentVersion, java.lang.String supportedVersion)
Creates a new UnsupportedDXPVersionException.
message
- the exception message StringcurrentVersion
- the version of the DXP currently loadedsupportedVersion
- the maximum DXP version supported by the throwing classpublic java.lang.String getCurrent()
Returns the version of the loaded DXP file.
public java.lang.String getSupported()
Returns the maximum DXP version that the throwing class supports.
Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.