org.openxml.parser
Class ValidityException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.io.IOException
                    |
                    +--org.openxml.parser.ParseException
                          |
                          +--org.openxml.parser.ValidityException

Deprecated. Replaced with SAXParseException

public final class ValidityException
extends ParseException

Extends ParseException to define an exception of validity severity (@link #ERROR_VALIDITY}. Validity exceptions are thrown only by validating parsers and are recoverable.

Validity exceptions are thrown when the document does not conform to the DTD. The parser might easily recover from and bypass a validity exception, and so these exceptions are usually stored and extracted at the end. Hand built HTML documents are rarely valid.

The parser will thrown an exception for the first validity error issued, if the stopAtSeverity level is ParseException.STOP_SEVERITY_VALIDITY.

Version:
$Revision: 1.3 $ $Date: 1999/04/18 01:52:13 $
Author:
Assaf Arkin
See Also:
ParseException, Serialized Form

Fields inherited from class org.openxml.parser.ParseException
ERROR_FATAL, ERROR_VALIDITY, ERROR_WELL_FORMED, STOP_SEVERITY_FATAL, STOP_SEVERITY_VALIDITY, STOP_SEVERITY_WELL_FORMED
 
Method Summary
 int getLevel()
          Deprecated.  
 
Methods inherited from class org.openxml.parser.ParseException
getLineNumber, getPrevious, getSourcePosition, getSourceURI
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLevel

public int getLevel()
Deprecated. 
Overrides:
getLevel in class ParseException