Class TaggedIOException

All Implemented Interfaces:
Serializable

@Deprecated(since="2026-04-30") public class TaggedIOException extends IOExceptionWithCause
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
An IOException 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:
  • Constructor Details

    • TaggedIOException

      public TaggedIOException(IOException original, Object tag)
      Deprecated.
      Creates a tagged wrapper for the given exception.
      Parameters:
      original - the exception to be tagged
      tag - tag object
  • Method Details

    • getTag

      public Object getTag()
      Deprecated.
      Returns the object reference used as the tag this exception.
      Returns:
      tag object
    • getCause

      public IOException getCause()
      Deprecated.
      Returns the wrapped exception. The only difference to the overridden Throwable.getCause() method is the narrower return type.
      Overrides:
      getCause in class Throwable
      Returns:
      wrapped exception