Name

SAXException

Synopsis

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.

org.xml.sax.SAXException

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.

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.