Class ExtractionException

All Implemented Interfaces:
Serializable

public class ExtractionException extends Exception
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:

  • errorCode non-null and non-blank.
  • message non-null.
  • retries >= 0.
Since:
0.1.0
See Also:
  • Constructor Details

    • ExtractionException

      public ExtractionException(String errorCode, String message, int retries)
    • ExtractionException

      public ExtractionException(String errorCode, String message, int retries, Throwable cause)
  • Method Details

    • errorCode

      public String errorCode()
    • retries

      public int retries()