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
- EquipmentIsNotUniqueException
- EquipmentNotFoundException
- EquipmentPortIsNotUniqueException
- EquipmentPortNotFoundException
- EquipmentPositionIsNotUniqueException
- EquipmentPositionNotFoundException
- EquipmentTypeNotFoundException
- LinkNotFoundException
- LocationCannotBeDeletedWithDependency
- LocationIsNotUniqueException
- LocationNotFoundException
- PortAlreadyOccupiedException
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
- CustomException
- builtins.Exception
- builtins.BaseException
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
- CustomException
- builtins.Exception
- builtins.BaseException
class EquipmentPortIsNotUniqueException (equipment_name: str, port_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class EquipmentPortNotFoundException (equipment_name: str, port_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class EquipmentPositionIsNotUniqueException (parent_equipment_name: str, parent_position_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class EquipmentPositionNotFoundException (parent_equipment_name: str, parent_position_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class EquipmentTypeNotFoundException (equipment_type_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class LinkNotFoundException (equipment_name: str, port_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
class LocationCannotBeDeletedWithDependency (location_name: str, dependency: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException
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
- CustomException
- builtins.Exception
- builtins.BaseException
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
- CustomException
- builtins.Exception
- builtins.BaseException
class PortAlreadyOccupiedException (equipment_name: str, port_name: str)
-
Common base class for all non-exit exceptions.
Ancestors
- CustomException
- builtins.Exception
- builtins.BaseException