exceptions.py 645 B

1234567891011121314151617
  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__(self, "Numpy arrays provided for comparisons do not have same dimensions")
  10. class NumpyShapeComparisonException(Exception):
  11. """
  12. Numpy shape comparison Exception raised if two numpy arrays provided do not have same shape extactly
  13. """
  14. def __init__(self):
  15. Exception.__init__(self, "Numpy arrays provided for comparisons do not have same shape")