1 # ***** BEGIN GPL LICENSE BLOCK *****
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 # ***** END GPL LICENCE BLOCK *****
20 # -----------------------------------------------------------------------
21 # Author: Alan Odom (Clockmender), Rune Morling (ermo) Copyright (c) 2019
22 # -----------------------------------------------------------------------
24 # Exceptions are used in the absence of nullable types in python
27 class SelectionError(Exception):
28 """Selection Error Exception."""
32 class InvalidVector(Exception):
33 """Invalid Vector Exception."""
37 class CommandFailure(Exception):
38 """Command Failure Exception."""
42 class ObjectModeError(Exception):
43 """Object Mode Error Exception."""
47 class MathsError(Exception):
48 """Mathematical Expression Error Exception."""
52 class InfRadius(Exception):
53 """Infinite Radius Error Exception."""
57 class NoObjectError(Exception):
58 """No Active Object Exception."""
62 class IntersectionError(Exception):
63 """Failure to Find Intersect Exception."""
67 class InvalidOperation(Exception):
68 """Invalid Operation Error Exception."""
72 class VerticesConnected(Exception):
73 """Vertices Already Connected Exception."""
77 class InvalidAngle(Exception):
78 """Angle Given was Outside Parameters Exception."""
81 class ShaderError(Exception):
82 """GL Shader Error Exception."""
85 class FeatureError(Exception):
86 """Wrong Feature Type Error Exception."""
89 class DistanceError(Exception):
90 """Invalid Distance (Separation) Error."""