org.openxml.parser
Class WellFormedException

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

Deprecated. Replaced with SAXParseException

public class WellFormedException
extends ParseException

Extends ParseException to define an exception of well formed severity (@link #ERROR_WELL_FORMED}. Well formed exceptions are thrown by both validating and non-validating parsers and are recoverable.

Well formed exceptions are thrown when the document is found to be faulty in structure, for example, a comment that is not terminated, or an opening tag that is not matched with a closing tag. While the parser might recover from and bypass a well formed exception, it is recommended to terminate parsing of such a document.

The parser will thrown an exception for the first well formed error issued, if the stopAtSeverity level is ParseException.STOP_SEVERITY_WELL_FORMED or 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