Class ExtractionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ai.doctruth.ExtractionException
- All Implemented Interfaces:
Serializable
Thrown from the public extraction API when an extraction run fails after exhausting retries
or when an invariant is violated mid-flight. Carries a stable
errorCode suitable
for log scraping plus the retry count at the moment of failure (helps distinguish
transient provider flakes from systematic schema errors).
Checked deliberately — auditable libraries force callers to write the catch.
Invariants:
errorCodenon-null and non-blank.messagenon-null.retries >= 0.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtractionException(String errorCode, String message, int retries) ExtractionException(String errorCode, String message, int retries, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExtractionException
-
ExtractionException
-
-
Method Details
-
errorCode
-
retries
public int retries()
-