Module pyinventory.exceptions

Functions

def get_location_id_msg(location_name: Union[str, NoneType] = None, location_type: Union[str, NoneType] = None, external_id: Union[str, NoneType] = None) -> str

Classes

class CustomException (...)

Common base class for all non-exit exceptions.

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses

class EntityNotFoundError (entity: Entity, entity_id: Union[str, NoneType] = None, entity_name: Union[str, NoneType] = None, msg: Union[str, NoneType] = None)

Common base class for all non-exit exceptions.

Ancestors

  • builtins.Exception
  • builtins.BaseException
class EquipmentIsNotUniqueException (equipment_name: Union[str, NoneType] = None, parent_equipment_name: Union[str, NoneType] = None, parent_position_name: Union[str, NoneType] = None)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentNotFoundException (equipment_name: Union[str, NoneType] = None, parent_equipment_name: Union[str, NoneType] = None, parent_position_name: Union[str, NoneType] = None)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentPortIsNotUniqueException (equipment_name: str, port_name: str)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentPortNotFoundException (equipment_name: str, port_name: str)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentPositionIsNotUniqueException (parent_equipment_name: str, parent_position_name: str)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentPositionNotFoundException (parent_equipment_name: str, parent_position_name: str)

Common base class for all non-exit exceptions.

Ancestors

class EquipmentTypeNotFoundException (equipment_type_name: str)

Common base class for all non-exit exceptions.

Ancestors

class LinkNotFoundException (equipment_name: str, port_name: str)

Common base class for all non-exit exceptions.

Ancestors

class LocationCannotBeDeletedWithDependency (location_name: str, dependency: str)

Common base class for all non-exit exceptions.

Ancestors

class LocationIsNotUniqueException (location_name: Union[str, NoneType] = None, location_type: Union[str, NoneType] = None, external_id: Union[str, NoneType] = None)

Common base class for all non-exit exceptions.

Ancestors

class LocationNotFoundException (location_name: Union[str, NoneType] = None, location_type: Union[str, NoneType] = None, external_id: Union[str, NoneType] = None)

Common base class for all non-exit exceptions.

Ancestors

class PortAlreadyOccupiedException (equipment_name: str, port_name: str)

Common base class for all non-exit exceptions.

Ancestors