Exceptions.py 680 B

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