Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cura/Settings/Exceptions.py')
-rw-r--r--cura/Settings/Exceptions.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/cura/Settings/Exceptions.py b/cura/Settings/Exceptions.py
index 0a869cf922..fbb130417c 100644
--- a/cura/Settings/Exceptions.py
+++ b/cura/Settings/Exceptions.py
@@ -2,21 +2,25 @@
# Cura is released under the terms of the LGPLv3 or higher.
-## Raised when trying to perform an operation like add on a stack that does not allow that.
class InvalidOperationError(Exception):
+ """Raised when trying to perform an operation like add on a stack that does not allow that."""
+
pass
-## Raised when trying to replace a container with a container that does not have the expected type.
class InvalidContainerError(Exception):
+ """Raised when trying to replace a container with a container that does not have the expected type."""
+
pass
-## Raised when trying to add an extruder to a Global stack that already has the maximum number of extruders.
class TooManyExtrudersError(Exception):
+ """Raised when trying to add an extruder to a Global stack that already has the maximum number of extruders."""
+
pass
-## Raised when an extruder has no next stack set.
class NoGlobalStackError(Exception):
+ """Raised when an extruder has no next stack set."""
+
pass