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, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public 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 SAXException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.