"""This module includes all custom warnings and errors used across ``hottbox``."""__all__=["TensorStateError","TensorModeError","TensorShapeError","TensorTopologyError","StateError","ModeError",]
[docs]classTensorStateError(Exception):""" Error raised when attempting to perform an operation on a ``Tensor`` which is not allowed for its current state """pass
[docs]classTensorModeError(Exception):""" Error raised when attempting to perform an operation on a ``Tensor`` which is not allowed by its ``Mode`` """pass
[docs]classTensorShapeError(Exception):""" Error raised when attempting to perform an operation on a ``Tensor`` which is not allowed for its current shape """pass
[docs]classTensorTopologyError(Exception):""" Error related to the dimensionality mismatch of counterparts of ``TensorCPD``, ``TensorTKD`` and ``TensorTT`` """pass
[docs]classStateError(Exception):""" Error raised when there is an attempt to set incorrect parameters for state of a ``Tensor`` """pass
[docs]classModeError(Exception):""" Error raised when there is an attempt to set incorrect parameters for mode of a ``Tensor`` """pass