Exceptions

Failure cases can result in a wide range of exceptions. They can be roughly categorized into:

  • Base Exceptions:

    Low-level failures like web-server or authentication errors and base classes for more specific errors.

  • Data Exceptions:

    Failures as results of operations on data in a platform like NotFound and NotUnique variants.

All subclasses of ixmp4.base_exceptions.Ixmp4Error will be serialized to a JSON error response if raised via the http API. The resulting JSON object will have a standardized structure:

{
   "name": "<exception name>",
   "message": "<exception message>",
   "http_status_code": 200 /* ... 599 */,
   "data": { /* extra exception data */ },
}

The exception name can be used to look up the appropriate exception class in the client exception registry and re-raise the right exceptions.

Base Exceptions

exception ixmp4.base_exceptions.Ixmp4Error(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: ServiceException

exception ixmp4.base_exceptions.ServerError(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: ServerError, Ixmp4Error

exception ixmp4.base_exceptions.BadGateway(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadGateway, Ixmp4Error

exception ixmp4.base_exceptions.ServiceUnavailable(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: ServiceUnavailable, Ixmp4Error

exception ixmp4.base_exceptions.BadRequest(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest, Ixmp4Error

exception ixmp4.base_exceptions.Unauthorized(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Unauthorized, Ixmp4Error

exception ixmp4.base_exceptions.Forbidden(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Forbidden, Ixmp4Error

exception ixmp4.base_exceptions.NotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound, Ixmp4Error

message: str | None = 'Not found.'
http_status_code: int = 404
exception ixmp4.base_exceptions.NotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique, Ixmp4Error

message: str | None = 'Not unique.'
http_status_code: int = 409
exception ixmp4.base_exceptions.ConstraintViolated(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: ConstraintViolated, Ixmp4Error

message: str | None = 'Database constraint violated.'
http_status_code: int = 400
exception ixmp4.base_exceptions.InconsistentIamcType(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 400
http_error_name = 'inconsistent_iamc_type'
exception ixmp4.base_exceptions.ImproperlyConfigured(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_error_name = 'improperly_configured'
exception ixmp4.base_exceptions.UnknownApiError(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_error_name = 'unknown_api_error'
exception ixmp4.base_exceptions.TooManyRequests(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 429
http_error_name = 'too_many_requests'
exception ixmp4.base_exceptions.PlatformNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound, PlatformNotFound, Ixmp4Error

exception ixmp4.base_exceptions.PlatformNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 409
http_error_name = 'platform_not_unique'
exception ixmp4.base_exceptions.OperationNotSupported(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 400
http_error_name = 'operation_not_supported'
exception ixmp4.base_exceptions.SchemaError(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 422
http_error_name = 'schema_error'
exception ixmp4.base_exceptions.DeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 400
exception ixmp4.base_exceptions.BadFilterArguments(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

message: str | None = 'The provided filter arguments are malformed.'
http_status_code: int = 400
http_error_name = 'bad_filter_arguments'
exception ixmp4.base_exceptions.OptimizationDataValidationError(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 422
http_error_name = 'optimization_data_validation_error'
exception ixmp4.base_exceptions.OptimizationItemUsageError(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: Ixmp4Error

http_status_code: int = 422
http_error_name = 'optimization_item_usage_error'
exception ixmp4.base_exceptions.InvalidDataFrame(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = 'The provided dataframe is invalid.'
exception ixmp4.base_exceptions.InvalidArguments(message: str | None = None, http_status_code: int | None = None, validation_error: ValidationError | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = 'The provided arguments are invalid.'
http_status_code: int = 400
http_error_name = 'invalid_arguments'

Data Exceptions

Run

exception ixmp4.data.run.exceptions.RunNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Run not found.'
exception ixmp4.data.run.exceptions.RunNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Run is not unique.'
exception ixmp4.data.run.exceptions.RunDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: ConstraintViolated

exception ixmp4.data.run.exceptions.NoDefaultRunVersion(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = 'No default version available for this run.'
exception ixmp4.data.run.exceptions.RunIsLocked(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = 'This run is already locked by another transaction. Use the `timeout` parameter on `run.transact()` to wait for the lock.'
exception ixmp4.data.run.exceptions.RunLockRequired(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = "This operation requires an active run lock. Use ``with run.transact('description'):`` to acquire one."
http_error_name = 'run_lock_required'

Model

exception ixmp4.data.model.exceptions.ModelNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Model not found.'
exception ixmp4.data.model.exceptions.ModelNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Model is not unique.'
exception ixmp4.data.model.exceptions.ModelDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete model: it is referenced by runs.'

Scenario

exception ixmp4.data.scenario.exceptions.ScenarioNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Scenario not found.'
exception ixmp4.data.scenario.exceptions.ScenarioNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Scenario is not unique.'
exception ixmp4.data.scenario.exceptions.ScenarioDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete scenario: it is referenced by runs.'

Meta Indicator

exception ixmp4.data.meta.exceptions.RunMetaEntryNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Meta entry not found.'
exception ixmp4.data.meta.exceptions.RunMetaEntryNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Meta entry is not unique.'
exception ixmp4.data.meta.exceptions.RunMetaEntryDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete metadata entry: it has dependencies.'
exception ixmp4.data.meta.exceptions.InvalidRunMeta(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: BadRequest

message: str | None = 'Invalid run meta entry.'

Region

exception ixmp4.data.region.exceptions.RegionNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Region not found.'
exception ixmp4.data.region.exceptions.RegionNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Region is not unique.'
exception ixmp4.data.region.exceptions.RegionDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete region: it is used in timeseries data.'

Unit

exception ixmp4.data.unit.exceptions.UnitNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Unit not found.'
exception ixmp4.data.unit.exceptions.UnitNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Unit is not unique.'
exception ixmp4.data.unit.exceptions.UnitDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete unit: it is used in parameters, variables, or scalars.'

IAMC

DataPoint

exception ixmp4.data.iamc.datapoint.exceptions.DataPointNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Datapoint not found.'
exception ixmp4.data.iamc.datapoint.exceptions.DataPointNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Datapoint is not unique.'
exception ixmp4.data.iamc.datapoint.exceptions.DataPointDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete datapoint: it has dependencies.'

Measurand

exception ixmp4.data.iamc.measurand.exceptions.MeasurandNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Measurand not found.'
exception ixmp4.data.iamc.measurand.exceptions.MeasurandNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Measurand is not unique.'
exception ixmp4.data.iamc.measurand.exceptions.MeasurandDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete measurand: it has dependencies.'

TimeSeries

exception ixmp4.data.iamc.timeseries.exceptions.TimeSeriesNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Timeseries not found.'
exception ixmp4.data.iamc.timeseries.exceptions.TimeSeriesNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Timeseries is not unique.'
exception ixmp4.data.iamc.timeseries.exceptions.TimeSeriesDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete timeseries: it has dependencies.'

Variable

exception ixmp4.data.iamc.variable.exceptions.VariableNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Variable not found.'
exception ixmp4.data.iamc.variable.exceptions.VariableNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Variable is not unique.'
exception ixmp4.data.iamc.variable.exceptions.VariableDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete variable: it is used in datapoints.'

Optimization

IndexSet

exception ixmp4.data.optimization.indexset.exceptions.IndexSetNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Index set not found.'
exception ixmp4.data.optimization.indexset.exceptions.IndexSetNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Index set is not unique.'
exception ixmp4.data.optimization.indexset.exceptions.IndexSetDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete index set: it has dependencies.'
exception ixmp4.data.optimization.indexset.exceptions.IndexSetDataInvalid(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: OptimizationDataValidationError

exception ixmp4.data.optimization.indexset.exceptions.IndexSetDataNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound, IndexSetDataInvalid

exception ixmp4.data.optimization.indexset.exceptions.IndexSetDataNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique, IndexSetDataInvalid

Scalar

exception ixmp4.data.optimization.scalar.exceptions.ScalarNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Scalar not found.'
exception ixmp4.data.optimization.scalar.exceptions.ScalarNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Scalar is not unique.'
exception ixmp4.data.optimization.scalar.exceptions.ScalarDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete scalar: it has dependencies.'

Equation

exception ixmp4.data.optimization.equation.exceptions.EquationNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Equation not found.'
exception ixmp4.data.optimization.equation.exceptions.EquationNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Equation is not unique.'
exception ixmp4.data.optimization.equation.exceptions.EquationDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete equation: it has dependencies.'
exception ixmp4.data.optimization.equation.exceptions.EquationDataInvalid(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: OptimizationDataValidationError

message: str | None = 'Invalid data for Equation.'

Parameter

exception ixmp4.data.optimization.parameter.exceptions.ParameterNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Parameter not found.'
exception ixmp4.data.optimization.parameter.exceptions.ParameterNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Parameter is not unique.'
exception ixmp4.data.optimization.parameter.exceptions.ParameterDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete parameter: it has dependencies.'
exception ixmp4.data.optimization.parameter.exceptions.ParameterDataInvalid(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: OptimizationDataValidationError

message: str | None = 'Invalid data for Parameter.'

Table

exception ixmp4.data.optimization.table.exceptions.TableNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Table not found.'
exception ixmp4.data.optimization.table.exceptions.TableNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Table is not unique.'
exception ixmp4.data.optimization.table.exceptions.TableDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

message: str | None = 'Cannot delete table: it has dependencies.'
exception ixmp4.data.optimization.table.exceptions.TableDataInvalid(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: OptimizationDataValidationError

message: str | None = 'Invalid data for Table.'

Variable

exception ixmp4.data.optimization.variable.exceptions.VariableNotFound(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotFound

message: str | None = 'Variable not found.'
exception ixmp4.data.optimization.variable.exceptions.VariableNotUnique(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: NotUnique

message: str | None = 'Variable is not unique.'
exception ixmp4.data.optimization.variable.exceptions.VariableDeletionPrevented(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: DeletionPrevented

exception ixmp4.data.optimization.variable.exceptions.VariableDataInvalid(message: str | None = None, http_status_code: int | None = None, **data: None | int | str | bool | list[None | int | str | bool | list[DataItemType] | dict[str, DataItemType]] | dict[str, None | int | str | bool | list[DataItemType] | dict[str, DataItemType]])

Bases: OptimizationDataValidationError

message: str | None = 'Invalid data for Variable.'