Class ExceptionReporting

java.lang.Object
org.apache.tika.config.ExceptionReporting
All Implemented Interfaces:
Serializable

public class ExceptionReporting extends Object implements Serializable
How much detail Tika reports when an exception is turned into a string: the tk:exception:* metadata values, tika-server error bodies and pipes result messages.

Stack traces and exception messages can carry file paths, hostnames and fragments of the document being parsed. Operators who expose Tika to untrusted callers can reduce that with ExceptionReporting.Level and bound the size with maxLength.

maxLength caps the formatted string: a longer value is cut to maxLength characters and a ...[truncated] marker is appended (-1 = unlimited).

Loaded from the parse-context section of the config and deliberately not settable per request: a caller could otherwise turn redaction back off.

Since:
Apache Tika 4.1
See Also: