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

Exceptions.py « Settings « cura - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fbb130417c4b44c4f204474dfec209f1330b58cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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