"""MCPServer exceptions."""
from smarter.common.exceptions import SmarterException
[docs]
class SmarterMCPServerException(SmarterException):
"""Base class for all mcpserver exceptions."""
@property
def get_formatted_err_message(self):
return "Smarter MCPServer error"
[docs]
class SmarterMCPServerIndexError(SmarterMCPServerException):
"""A repository could not be indexed, e.g. GitHub could not be reached, or its archive is too large."""
@property
def get_formatted_err_message(self):
return "Smarter MCPServer index error"