Exceptions

exception ixmp4.core.exceptions.ApiEncumbered(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'api_encumbered'
exception ixmp4.core.exceptions.BadFilterArguments(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'bad_filter_arguments'
http_status_code: int = 400
exception ixmp4.core.exceptions.BadRequest(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'bad_request'
http_status_code: int = 400
exception ixmp4.core.exceptions.DeletionPrevented(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'deletion_prevented'
http_status_code: int = 400
exception ixmp4.core.exceptions.Forbidden(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'forbidden'
http_status_code: int = 403
exception ixmp4.core.exceptions.ImproperlyConfigured(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'improperly_configured'
exception ixmp4.core.exceptions.InconsistentIamcType(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'inconsistent_iamc_type'
http_status_code: int = 400
exception ixmp4.core.exceptions.InvalidCredentials(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'invalid_credentials'
http_status_code: int = 401
exception ixmp4.core.exceptions.InvalidRunMeta(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'run_invalid_meta'
http_status_code: int = 400
exception ixmp4.core.exceptions.InvalidToken(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'invalid_token'
http_status_code: int = 401
exception ixmp4.core.exceptions.IxmpError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: Exception

classmethod from_dict(dict_: dict[str, Any]) Self
http_error_name: ClassVar[str] = 'ixmp_error'
http_status_code: int = 500
kwargs: dict[str, Any]
property message: str
exception ixmp4.core.exceptions.ManagerApiError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'manager_api_error'
exception ixmp4.core.exceptions.MissingToken(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'missing_token'
http_status_code: int = 401
exception ixmp4.core.exceptions.NoDefaultRunVersion(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'run_no_default_version'
http_status_code: int = 400
exception ixmp4.core.exceptions.NotFound(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'not_found'
http_status_code: int = 404
exception ixmp4.core.exceptions.NotUnique(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'not_unique'
http_status_code: int = 409
exception ixmp4.core.exceptions.OperationNotSupported(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'operation_not_supported'
http_status_code: int = 400
exception ixmp4.core.exceptions.OptimizationDataValidationError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'optimization_data_validation_error'
http_status_code: int = 422
exception ixmp4.core.exceptions.OptimizationItemUsageError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'optimization_item_usage_error'
http_status_code: int = 422
exception ixmp4.core.exceptions.PlatformNotFound(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'platform_not_found'
http_status_code: int = 404
exception ixmp4.core.exceptions.PlatformNotUnique(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'platform_not_unique'
http_status_code: int = 409
exception ixmp4.core.exceptions.ProgrammingError

Bases: Exception

class ixmp4.core.exceptions.RemoteExceptionMeta(name: str, bases: tuple[type, ...], namespace: dict[str, Any], **kwargs: Any)

Bases: type

exception ixmp4.core.exceptions.SchemaError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'schema_error'
http_status_code: int = 422
kwargs: dict[str, Any]
exception ixmp4.core.exceptions.UnknownApiError(*args: str, message: str | None = None, status_code: int | None = None, **kwargs: Any)

Bases: IxmpError

http_error_name: ClassVar[str] = 'unknown_api_error'
kwargs: dict[str, Any]