Exceptions.py 652 B

12345678910111213141516171819202122
  1. # Copyright (c) 2017 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. ## Raised when trying to perform an operation like add on a stack that does not allow that.
  4. class InvalidOperationError(Exception):
  5. pass
  6. ## Raised when trying to replace a container with a container that does not have the expected type.
  7. class InvalidContainerError(Exception):
  8. pass
  9. ## Raised when trying to add an extruder to a Global stack that already has the maximum number of extruders.
  10. class TooManyExtrudersError(Exception):
  11. pass
  12. ## Raised when an extruder has no next stack set.
  13. class NoGlobalStackError(Exception):
  14. pass