public class TaggedSAXException
extends org.xml.sax.SAXException
SAXException wrapper that tags the wrapped exception with
a given object reference. Both the tag and the wrapped original exception
can be used to determine further processing when this exception is caught.| Constructor and Description |
|---|
TaggedSAXException(org.xml.sax.SAXException original,
java.lang.Object tag)
Creates a tagged wrapper for the given exception.
|
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.SAXException |
getCause()
Returns the wrapped exception.
|
java.lang.Object |
getTag()
Returns the object reference used as the tag this exception.
|
public TaggedSAXException(org.xml.sax.SAXException original,
java.lang.Object tag)
original - the exception to be taggedtag - tag objectpublic java.lang.Object getTag()
public org.xml.sax.SAXException getCause()
Throwable.getCause() method is the narrower return type.getCause in class org.xml.sax.SAXExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved