1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # -----------------------------------------------------------------------
4 # Author: Alan Odom (Clockmender), Rune Morling (ermo) Copyright (c) 2019
5 # -----------------------------------------------------------------------
7 # Exceptions are used in the absence of nullable types in python
10 class SelectionError(Exception):
11 """Selection Error Exception."""
15 class InvalidVector(Exception):
16 """Invalid Vector Exception."""
20 class CommandFailure(Exception):
21 """Command Failure Exception."""
25 class ObjectModeError(Exception):
26 """Object Mode Error Exception."""
30 class MathsError(Exception):
31 """Mathematical Expression Error Exception."""
35 class InfRadius(Exception):
36 """Infinite Radius Error Exception."""
40 class NoObjectError(Exception):
41 """No Active Object Exception."""
45 class IntersectionError(Exception):
46 """Failure to Find Intersect Exception."""
50 class InvalidOperation(Exception):
51 """Invalid Operation Error Exception."""
55 class VerticesConnected(Exception):
56 """Vertices Already Connected Exception."""
60 class InvalidAngle(Exception):
61 """Angle Given was Outside Parameters Exception."""
64 class ShaderError(Exception):
65 """GL Shader Error Exception."""
68 class FeatureError(Exception):
69 """Wrong Feature Type Error Exception."""
72 class DistanceError(Exception):
73 """Invalid Distance (Separation) Error."""