datamint.exceptions

exception datamint.exceptions.DatamintException

Bases: Exception

Base class for exceptions in this module.

exception datamint.exceptions.EntityAlreadyExistsError(entity_type, params)

Bases: DatamintException

Exception raised when trying to create an entity that already exists. For instance, when creating a project with a name that already exists.

Parameters:
  • entity_type (str)

  • params (dict)

exception datamint.exceptions.ItemNotFoundError(item_type, params)

Bases: DatamintException

Exception raised when an item is not found. For instance, when trying to get an item by a non-existing id.

Parameters:
  • item_type (str)

  • params (dict)

property resource_type
set_params(resource_type, params)
Parameters:
  • resource_type (str)

  • params (dict)

datamint.exceptions.ResourceNotFoundError

alias of ItemNotFoundError