Exceptions

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: Exception

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

Bases: IxmpError

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

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, bases, namespace, **kwargs)

Bases: type

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

Bases: IxmpError

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

Bases: IxmpError

http_error_name: ClassVar[str] = 'unknown_api_error'
kwargs: Dict