Skip to main content
Glama
exceptions.py695 B
"""Custom exception types for Promptheus.""" class PromptCancelled(KeyboardInterrupt): """Raised when the user cancels an in-flight prompt operation.""" def __init__(self, message: str = "Prompt cancelled by user") -> None: super().__init__(message) class ProviderAPIError(Exception): """Raised when an LLM provider API call fails.""" pass class TemplateError(Exception): """Base class for template generation errors.""" pass class InvalidProviderError(TemplateError): """Raised when an invalid provider is specified for template generation.""" pass class FileWriteError(TemplateError): """Raised when template file writing fails.""" pass

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhichandra21/Promptheus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server