Team LiB
Previous Section Next Section

SAXExceptionorg.xml.sax

Java 1.4serializable checked

Signals a problem while parsing an XML document. This class serves as the general superclass for more specific types of SAX exceptions. The parse( ) method of an XMLReader can throw an exception of this type. The application can also throw a SAXException from any of the handler methods (of ContentHandler and ErrorHandler for example) invoked by the parser.

Figure 22-2. org.xml.sax.SAXException


public class SAXException extends Exception {
// Public Constructors
5.0  public SAXException( );  
     public SAXException(String message);  
     public SAXException(Exception e);  
     public SAXException(String message, Exception e);  
// Public Instance Methods
     public Exception getException( );                                    default:null
// Public Methods Overriding Throwable
     public String getMessage( );                                         default:null
     public String toString( );  
}

Subclasses

SAXNotRecognizedException, SAXNotSupportedException, SAXParseException

Thrown By

Too many methods to list.

    Team LiB
    Previous Section Next Section