Skip to content

Exceptions

Exceptions

director.utils.exceptions.DirectorException

DirectorException(message='An error occurred.', **kwargs)

Bases: Exception

Base class for exceptions in this module.

Source code in backend/director/utils/exceptions.py
def __init__(self, message="An error occurred.", **kwargs):
    super(ValueError, self).__init__(message)

director.utils.exceptions.AgentException

AgentException(
    message="An error occurred in the agent", **kwargs
)

Bases: DirectorException

Exception raised for errors in the agent.

Source code in backend/director/utils/exceptions.py
def __init__(self, message="An error occurred in the agent", **kwargs):
    super(ValueError, self).__init__(message)

director.utils.exceptions.ToolException

ToolException(
    message="An error occurred in the tool", **kwargs
)

Bases: DirectorException

Exception raised for errors in the tool.

Source code in backend/director/utils/exceptions.py
def __init__(self, message="An error occurred in the tool", **kwargs):
    super(ValueError, self).__init__(message)