Package org.apache.tika.exception
Class EmbeddedLimitReachedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tika.exception.EmbeddedLimitReachedException
- All Implemented Interfaces:
Serializable
Runtime exception thrown when an embedded document limit is reached
and the configuration specifies that parsing should stop with an exception.
This is a runtime exception to avoid polluting the EmbeddedDocumentExtractor
interface with checked exceptions, since most implementations don't need limit checking.
- Since:
- Apache Tika 3.2
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedLimitReachedException(EmbeddedLimitReachedException.LimitType limitType, long limit) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EmbeddedLimitReachedException
- Parameters:
limit- the configured limit -- forEmbeddedLimitReachedException.LimitType.DEADLINEthis istotalTaskTimeoutMillis, not a count or depth
-
-
Method Details
-
getLimitType
-
getLimit
public long getLimit()- Returns:
- the configured limit, e.g.
totalTaskTimeoutMillisforEmbeddedLimitReachedException.LimitType.DEADLINE
-