Package com.tnsai.knowledge
Class KnowledgeBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.exceptions.TnsAIException
com.tnsai.knowledge.KnowledgeBaseException
- All Implemented Interfaces:
Serializable
Exception thrown by knowledge base operations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeBaseException(String message) KnowledgeBaseException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeBaseExceptionFactory method for document not found errors.static KnowledgeBaseExceptionembeddingDimensionMismatch(int expected, int actual) Factory method for embedding dimension mismatch.static KnowledgeBaseExceptionsearchFailed(String query, Throwable cause) Factory method for search errors.Methods inherited from class com.tnsai.exceptions.TnsAIException
getContext, getErrorCode, getMaxRetryAttempts, getMessage, getSuggestedRetryDelayMs, getThrownAt, isRetryable, wrapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KnowledgeBaseException
-
KnowledgeBaseException
-
-
Method Details
-
documentNotFound
Factory method for document not found errors. -
embeddingDimensionMismatch
Factory method for embedding dimension mismatch. -
searchFailed
Factory method for search errors.
-