httk.optimade.model.errors¶
Exceptions¶
Common base class for all non-exit exceptions. |
|
Common base class for all non-exit exceptions. |
Functions¶
|
Wrap a neutral |
Module Contents¶
- exception httk.optimade.model.errors.OptimadeError(message: str, response_code: int, response_message: str, longmsg: str | None = None)[source]¶
Bases:
ExceptionCommon base class for all non-exit exceptions.
- exception httk.optimade.model.errors.TranslatorError(message: str, response_code: int, response_message: str, longmsg: str | None = None)[source]¶
Bases:
OptimadeErrorCommon base class for all non-exit exceptions.
- httk.optimade.model.errors.translator_error_from(error: httk.data.optimade_query.FilterTranslationError) TranslatorError[source]¶
Wrap a neutral
FilterTranslationErrorinto aTranslatorErrorcarrying the corresponding HTTP status.