exceptions.py 708 B

1234567891011121314151617181920212223242526
  1. """
  2. Module which contains all customs Exceptions
  3. """
  4. class NumpyDimensionComparisonException(Exception):
  5. """
  6. Numpy dimensions comparison Exception raised if two numpy arrays provided do not have same dimensions
  7. """
  8. def __init__(self):
  9. Exception.__init__(
  10. self,
  11. "Numpy arrays provided for comparisons do not have same dimensions"
  12. )
  13. class NumpyShapeComparisonException(Exception):
  14. """
  15. Numpy shape comparison Exception raised if two numpy arrays provided do not have same shape extactly
  16. """
  17. def __init__(self):
  18. Exception.__init__(
  19. self,
  20. "Numpy arrays provided for comparisons do not have same shape")