Package com.tnsai.rag
Class DocumentProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.rag.DocumentProcessingException
- All Implemented Interfaces:
Serializable
Typed failure for document detection, extraction, and chunking.
The public message contains declaration identity, source URI, effective format, and a framework-controlled detail only. Document bytes and extracted content are never interpolated into it.
- Since:
- 0.13.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStable stages across the document-ingestion pipeline. -
Constructor Summary
ConstructorsConstructorDescriptionDocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail) Creates a typed document-processing failure.DocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail, Throwable cause) Creates a typed document-processing failure with an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DocumentProcessingException
public DocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail) Creates a typed document-processing failure.- Parameters:
stage- failing pipeline stagesourceName- knowledge-source declaration namesource- canonical source URIformat- effective format, or AUTO when detection faileddetail- framework-controlled diagnostic detail
-
DocumentProcessingException
public DocumentProcessingException(DocumentProcessingException.Stage stage, String sourceName, URI source, DocumentFormat format, String detail, Throwable cause) Creates a typed document-processing failure with an underlying cause.- Parameters:
stage- failing pipeline stagesourceName- knowledge-source declaration namesource- canonical source URIformat- effective format, or AUTO when detection faileddetail- framework-controlled diagnostic detailcause- original failure
-
-
Method Details
-
stage
Returns the stable pipeline stage. -
sourceName
Returns the knowledge-source declaration name. -
source
Returns the canonical source URI. -
format
Returns the effective format, or AUTO when detection failed.
-