Source code for notdiamond.exceptions

[docs] class UnsupportedLLMProvider(Exception): """The exception class for unsupported LLM provider"""
[docs] class UnsupportedEmbeddingProvider(Exception): """The exception class for unsupported Embedding provider"""
[docs] class InvalidApiKey(Exception): """The exception class for InvalidApiKey"""
[docs] class MissingApiKey(Exception): """The exception class for MissingApiKey"""
[docs] class MissingLLMConfigs(Exception): """The exception class for empty LLM provider configs array"""
[docs] class ApiError(Exception): """The exception class for any ApiError"""
[docs] class CreateUnavailableError(Exception): """The exception class raised when `notdiamond[create]` is not available"""