Cleanup: strip trailing space, remove BOM
[blender-addons.git] / precision_drawing_tools / pdt_exception.py
blob601f51413eedef1895b2f2b389c7ed967841625e
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."""
29 pass
32 class InvalidVector(Exception):
33 """Invalid Vector Exception."""
34 pass
37 class CommandFailure(Exception):
38 """Command Failure Exception."""
39 pass
42 class ObjectModeError(Exception):
43 """Object Mode Error Exception."""
44 pass
47 class MathsError(Exception):
48 """Mathematical Expression Error Exception."""
49 pass
52 class InfRadius(Exception):
53 """Infinite Radius Error Exception."""
54 pass
57 class NoObjectError(Exception):
58 """No Active Object Exception."""
59 pass
62 class IntersectionError(Exception):
63 """Failure to Find Intersect Exception."""
64 pass
67 class InvalidOperation(Exception):
68 """Invalid Operation Error Exception."""
69 pass
72 class VerticesConnected(Exception):
73 """Vertices Already Connected Exception."""
74 pass
77 class InvalidAngle(Exception):
78 """Angle Given was Outside Parameters Exception."""
79 pass
81 class ShaderError(Exception):
82 """GL Shader Error Exception."""
83 pass
85 class FeatureError(Exception):
86 """Wrong Feature Type Error Exception."""
87 pass
89 class DistanceError(Exception):
90 """Invalid Distance (Separation) Error."""
91 pass