Class TaggedSAXException

  • All Implemented Interfaces:

    public class TaggedSAXException
    extends SAXException
    A 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • TaggedSAXException

        public TaggedSAXException​(SAXException original,
                                  Object tag)
        Creates a tagged wrapper for the given exception.
        original - the exception to be tagged
        tag - tag object
    • Method Detail

      • getTag

        public Object getTag()
        Returns the object reference used as the tag this exception.
        tag object