public boolean isCauseOf(SAXException exception) {
        if (exception instanceof TaggedSAXException) {
            TaggedSAXException tagged = (TaggedSAXException) exception;
            return this == tagged.getTag();
        } else {
            return false;
        }
    }
Tests if the given exception was caused by this handler.

@param exception an exception
@return <code>true</code> if the exception was thrown by this handler,
<code>false</code> otherwise
tika-core/src/main/java/org/apache/tika/sax/TaggedContentHandler.java