Skip to content

Exceptions API Reference

This page documents the exceptions API functionality of PromptSite.

promptsite.exceptions

ConfigError

Bases: PromptSiteError

Base exception for config-related errors.

ConfigFileNotFoundError

Bases: PromptSiteError

Raised when config file is not found.

ContentRequiredError

Bases: PromptSiteError

Raised when content is required but not provided.

DatasetFieldNotFoundError

Bases: PromptSiteError

Raised when a field is not found in the dataset.

InvalidPromptContentError

Bases: PromptSiteError

Raised when prompt content is invalid or empty.

LLMBackendNotImplementedError

Bases: PromptSiteError

Raised when an LLM backend is not implemented.

PromptAlreadyExistsError

Bases: PromptSiteError

Raised when attempting to register a prompt that already exists.

PromptNotFoundError

Bases: PromptSiteError

Raised when attempting to access a prompt that doesn't exist.

PromptSiteError

Bases: Exception

Base exception class for PromptSite errors.

RunNotFoundError

Bases: PromptSiteError

Raised when a run is not found.

StorageBackendNotFoundError

Bases: PromptSiteError

Raised when specified storage backend is not found.

StorageError

Bases: PromptSiteError

Base exception for storage-related errors.

StorageFileNotFoundError

Bases: PromptSiteError

Raised when the storage file is not found.

VariableUnmatchError

Bases: PromptSiteError

Raised when the variables and the values do not match.

VariableValidationError

Bases: PromptSiteError

Raised when the variable is not valid.

VersionNotFoundError

Bases: PromptSiteError

Raised when a prompt version is not found.