Package org.apache.tika.exception
Class WriteLimitReachedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xml.sax.SAXException
-
- org.apache.tika.exception.WriteLimitReachedException
-
- All Implemented Interfaces:
Serializable
public class WriteLimitReachedException extends SAXException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WriteLimitReachedException(int writeLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
static boolean
isWriteLimitReached(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(Exception ex)
-
Methods inherited from class org.xml.sax.SAXException
getCause, getException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classSAXException
-
isWriteLimitReached
public static boolean isWriteLimitReached(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(Exception ex) throws SAXException
- Throws:
SAXException
-
-