public class TaggedSAXException extends 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(SAXException original,
Object tag)
Creates a tagged wrapper for the given exception.
|
| Modifier and Type | Method and Description |
|---|---|
SAXException |
getCause()
Returns the wrapped exception.
|
Object |
getTag()
Returns the object reference used as the tag this exception.
|
getException, getMessage, toStringaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TaggedSAXException(SAXException original, Object tag)
original - the exception to be taggedtag - tag objectpublic Object getTag()
public SAXException getCause()
Throwable.getCause() method is the narrower return type.getCause in class SAXExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.