Class WriteLimitReachedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WriteLimitReachedException
    extends org.xml.sax.SAXException
    Transitional class to Tika 2.x. This is not actually thrown by anything, but the static check for isWriteLimitReached works.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isWriteLimitReached​(java.lang.Throwable t)
      Checks whether the given exception (or any of it's root causes) was thrown by this handler as a signal of reaching the write limit.
      static void throwIfWriteLimitReached​(java.lang.Exception ex)  
      • Methods inherited from class org.xml.sax.SAXException

        getCause, getException, getMessage, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WriteLimitReachedException

        public WriteLimitReachedException​(java.lang.String msg)
    • Method Detail

      • isWriteLimitReached

        public static boolean isWriteLimitReached​(java.lang.Throwable t)
        Checks whether the given exception (or any of it's root causes) was thrown by this handler as a signal of reaching the write limit.
        Parameters:
        t - throwable
        Returns:
        true if the write limit was reached, false otherwise
        Since:
        Apache Tika 2.0
      • throwIfWriteLimitReached

        public static void throwIfWriteLimitReached​(java.lang.Exception ex)
                                             throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException