net.sf.xmlmatcher.exc
Class XMLMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.xmlmatcher.exc.MatcherException
              extended by net.sf.xmlmatcher.exc.XMLMismatchException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AttributeValueMismatchException, GenericXMLMismatchException, JsAssertionFailedException, MissingAttributeException, MissingElementsException, RexMismatchException, TagNamesMismatchException, XMLTextComparisonException, XPathDoesNotExistException

public abstract class XMLMismatchException
extends MatcherException

Generic base class for all exceptions that report some kind of mismatch between actual document and template.

See Also:
Serialized Form

Constructor Summary
protected XMLMismatchException(java.lang.String message, org.w3c.dom.Element template, org.w3c.dom.Element actual)
           
 
Method Summary
 org.w3c.dom.Element getActual()
           
 java.lang.String getActualPath()
           
 java.lang.String getMessage()
           
 org.w3c.dom.Element getTemplate()
           
 java.lang.String getTemplatePath()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLMismatchException

protected XMLMismatchException(java.lang.String message,
                               org.w3c.dom.Element template,
                               org.w3c.dom.Element actual)
Method Detail

getTemplatePath

public final java.lang.String getTemplatePath()

getActualPath

public final java.lang.String getActualPath()

getTemplate

public final org.w3c.dom.Element getTemplate()

getActual

public final org.w3c.dom.Element getActual()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2007. All Rights Reserved.