Skip to content

exceptions

OTE-API OPTIMADE-specific Python exceptions.

BaseOteapiOptimadeException

Bases: Exception

Base OTE-API OPTIMADE exception.

Source code in oteapi_optimade/exceptions.py
6
7
class BaseOteapiOptimadeException(Exception):
    """Base OTE-API OPTIMADE exception."""

ConfigurationError

Bases: BaseOteapiOptimadeException

An error occurred when dealing with strategy configurations.

Source code in oteapi_optimade/exceptions.py
14
15
class ConfigurationError(BaseOteapiOptimadeException):
    """An error occurred when dealing with strategy configurations."""

MissingDependency

Bases: BaseOteapiOptimadeException

A required dependency is missing.

Source code in oteapi_optimade/exceptions.py
10
11
class MissingDependency(BaseOteapiOptimadeException):
    """A required dependency is missing."""

OPTIMADEParseError

Bases: BaseOteapiOptimadeException

Could not use OPTIMADE Python tools to parse an OPTIMADE API response.

Source code in oteapi_optimade/exceptions.py
26
27
class OPTIMADEParseError(BaseOteapiOptimadeException):
    """Could not use OPTIMADE Python tools to parse an OPTIMADE API response."""

OPTIMADEResponseError

Bases: RequestError

An OPTIMADE error was returned from a URL request.

Source code in oteapi_optimade/exceptions.py
22
23
class OPTIMADEResponseError(RequestError):
    """An OPTIMADE error was returned from a URL request."""

RequestError

Bases: BaseOteapiOptimadeException

A general error occured when performing a URL request.

Source code in oteapi_optimade/exceptions.py
18
19
class RequestError(BaseOteapiOptimadeException):
    """A general error occured when performing a URL request."""