Name

TransformerConfigurationException

Synopsis

Signals a problem creating a Transformer object. This may occur, for exmaple, if there is a syntax error in the XSL stylesheet that contains the transformation instructions. Use the inherited getLocator( ) method to obtain a SourceLocator that describes the document location at which the exception occurred.

javax.xml.transform.TransformerConfigurationException

Figure 20-5. javax.xml.transform.TransformerConfigurationException

public class TransformerConfigurationException extends TransformerException {
// Public Constructors
     public TransformerConfigurationException( );  
     public TransformerConfigurationException(Throwable e);  
     public TransformerConfigurationException(String msg);  
     public TransformerConfigurationException(String message, SourceLocator locator);  
     public TransformerConfigurationException(String msg, Throwable e);  
     public TransformerConfigurationException(String message, SourceLocator locator, 
        Throwable e);  
}

Thrown By

Templates.newTransformer( ), TransformerFactory.{getAssociatedStylesheet( ), newTemplates( ), newTransformer( ), setFeature( )}, javax.xml.transform.sax.SAXTransformerFactory.{newTemplatesHandler( ), newTransformerHandler( ), newXMLFilter( )}

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.