nu.validator.relaxng.exceptions
Class AbstractValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.xml.sax.SAXException
              extended by org.xml.sax.SAXParseException
                  extended by nu.validator.relaxng.exceptions.AbstractValidationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadAttributeValueException, ImpossibleAttributeIgnoredException, OnlyTextNotAllowedException, OutOfContextElementException, RequiredAttributesMissingException, RequiredElementsMissingException, StringNotAllowedException, TextNotAllowedException, UnfinishedElementException, UnknownElementException

public abstract class AbstractValidationException
extends SAXParseException

See Also:
Serialized Form

Field Summary
private  Name currentElement
           
protected static Localizer localizer
           
private  Name parent
           
 
Constructor Summary
AbstractValidationException(String formattedMessage, Locator locator, Name currentElement, Name parent)
           
 
Method Summary
 Name getCurrentElement()
          Returns the currentElement.
 Name getParent()
          Returns the parent.
 
Methods inherited from class org.xml.sax.SAXParseException
getColumnNumber, getLineNumber, getPublicId, getSystemId
 
Methods inherited from class org.xml.sax.SAXException
getException, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

localizer

protected static final Localizer localizer

currentElement

private final Name currentElement

parent

private final Name parent
Constructor Detail

AbstractValidationException

AbstractValidationException(String formattedMessage,
                            Locator locator,
                            Name currentElement,
                            Name parent)
Method Detail

getCurrentElement

public Name getCurrentElement()
Returns the currentElement.

Returns:
the currentElement

getParent

public Name getParent()
Returns the parent.

Returns:
the parent