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 SummaryConstructors Constructor Description WriteLimitReachedException(int writeLimit)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()static booleanisWriteLimitReached(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 voidthrowIfWriteLimitReached(Exception ex)- 
Methods inherited from class org.xml.sax.SAXExceptiongetCause, getException, toString
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Method Detail- 
getMessagepublic String getMessage() - Overrides:
- getMessagein class- SAXException
 
 - 
isWriteLimitReachedpublic 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:
- trueif the write limit was reached,- falseotherwise
- Since:
- Apache Tika 2.0
 
 - 
throwIfWriteLimitReachedpublic static void throwIfWriteLimitReached(Exception ex) throws SAXException - Throws:
- SAXException
 
 
- 
 
-