mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 15:25:02 +08:00
27 lines
680 B
Python
27 lines
680 B
Python
# Copyright (c) 2017 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
|
|
class InvalidOperationError(Exception):
|
|
"""Raised when trying to perform an operation like add on a stack that does not allow that."""
|
|
|
|
pass
|
|
|
|
|
|
class InvalidContainerError(Exception):
|
|
"""Raised when trying to replace a container with a container that does not have the expected type."""
|
|
|
|
pass
|
|
|
|
|
|
class TooManyExtrudersError(Exception):
|
|
"""Raised when trying to add an extruder to a Global stack that already has the maximum number of extruders."""
|
|
|
|
pass
|
|
|
|
|
|
class NoGlobalStackError(Exception):
|
|
"""Raised when an extruder has no next stack set."""
|
|
|
|
pass
|