Source code for praval.core.exceptions

"""
Custom exceptions for the Praval framework.

These exceptions provide clear error handling and debugging information
for common issues in LLM agent operations.
"""


[docs] class PravalError(Exception): """Base exception for all Praval-related errors.""" pass
[docs] class ProviderError(PravalError): """Raised when there are issues with LLM provider operations.""" pass
[docs] class ConfigurationError(PravalError): """Raised when there are configuration validation issues.""" pass
[docs] class ToolError(PravalError): """Raised when there are issues with tool registration or execution.""" pass
[docs] class StateError(PravalError): """Raised when there are issues with state persistence operations.""" pass