public class PropertyRejectedException extends DeltaXMLProcessingException
This Exception is thrown when a comparison is started on an XMLComparator on which setProperty has been called with arguments
that are not understood by a parent XMLReader
.
XMLComparator.setProperty(String, Object)
calls cause the property name and value to be stored until a comparison is
started, at which time they are passed back up the input filter chains as defined by the SAX specification. If at any point, a
parent XMLReader
throws a SAXNotRecognizedException
or a
SAXNotSupportedException
when a property is passed to it, this Exception will be thrown by the
XMLComparator
DeltaXMLException.getCause()
can be used to get the underlying cause of this exception
XMLComparator.setProperty(String, Object)
,
XMLReader.setProperty(String, Object)
,
Serialized FormConstructor and Description |
---|
PropertyRejectedException(java.lang.String propertyName,
java.lang.Throwable t)
Construct a new PropertyRejectedException giving the property name that caused the problem and a cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPropertyName()
Returns the name of the property that caused the PropertyRejectedException.
|
getErrorCode, getSeverity
getCause, getThrowable
public PropertyRejectedException(java.lang.String propertyName, java.lang.Throwable t)
propertyName
- the property that caused the Exceptiont
- the Exception that was thrown by the parent XMLReader
Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.