public class CannotCompareDeltaException extends DeltaXMLProcessingException
It is not permitted to use a delta file to the input to a comparison since a meaningful delta result cannot be produced. This exception is thrown if either input to the comparison operation is detected to be a delta file.
A systemId may be available so that the inputs can be differentiated and the faulty one located.
Note: the getErrorCode()
method is provided for compatibility with earlier XML
Compare releases; when called with this exception the result will be: 49
Constructor and Description |
---|
CannotCompareDeltaException(java.lang.String rootElement,
java.lang.String systemId)
Construct a new CannotCompareDeltaException appropriate for use within the XML Compare code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRootElement()
Report the root element QName of an unexpected delta file.
|
java.lang.String |
getSystemId()
Report the systemId of an unexpected delta file.
|
getErrorCode, getSeverity
getCause, getThrowable
public CannotCompareDeltaException(java.lang.String rootElement, java.lang.String systemId)
rootElement
- String used to represent the XPath of the root element.systemId
- used to identify the invalid inputpublic java.lang.String getRootElement()
public java.lang.String getSystemId()