| Package | Description | 
|---|---|
| javax.xml.transform | This package defines the generic APIs for processing transformation
instructions, and performing a transformation from source to result. | 
| javax.xml.transform.dom | This package implements DOM-specific transformation APIs. | 
| Modifier and Type | Method and Description | 
|---|---|
| SourceLocator | TransformerException. getLocator()Method getLocator retrieves an instance of a SourceLocator
 object that specifies where an error occurred. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | TransformerException. setLocator(SourceLocator location)Method setLocator sets an instance of a SourceLocator
 object that specifies where an error occurred. | 
| Constructor and Description | 
|---|
| TransformerConfigurationException(String message,
                                 SourceLocator locator)Create a new TransformerConfigurationException from a message and a Locator. | 
| TransformerConfigurationException(String message,
                                 SourceLocator locator,
                                 Throwable e)Wrap an existing exception in a TransformerConfigurationException. | 
| TransformerException(String message,
                    SourceLocator locator)Create a new TransformerException from a message and a Locator. | 
| TransformerException(String message,
                    SourceLocator locator,
                    Throwable e)Wrap an existing exception in a TransformerException. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | DOMLocatorIndicates the position of a node in a source DOM, intended
 primarily for error reporting. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.