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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRune Morling <ermo.blender.org@spammesenseless.net>2020-02-03 13:33:42 +0300
committerRune Morling <ermo.blender.org@spammesenseless.net>2020-02-03 13:33:42 +0300
commitd4c1e6cdc121908c4a5b1af6b7fc23def5c94a17 (patch)
treea5d1bf2b13c452a1c641cfe5cd00b50796ee9735 /precision_drawing_tools/pdt_exception.py
parent42d713b0a63a5c0502f861381dbf07c61731e2ae (diff)
PDT: Move stray files from add-on root folder
The error likely came about because we first commit files to @clockmender's upstream github repo and then use git format-patch to create patches which are then applied to the blender add-on repo with: `git-am -3 --rerere-autoupdate foo.patch`. Here, the issue seems to be that we've renamed files in the upstream github repo, but that I then failed to first create and commit empty files with the same name in the precision_drawing_tools/ repo, which meant that git did the best it could and added them to the root of the blender add-ons repo since the files didn't exist in the add-on repo index when they were added.
Diffstat (limited to 'precision_drawing_tools/pdt_exception.py')
-rw-r--r--precision_drawing_tools/pdt_exception.py83
1 files changed, 83 insertions, 0 deletions
diff --git a/precision_drawing_tools/pdt_exception.py b/precision_drawing_tools/pdt_exception.py
new file mode 100644
index 00000000..dd2aea4d
--- /dev/null
+++ b/precision_drawing_tools/pdt_exception.py
@@ -0,0 +1,83 @@
+# ***** BEGIN GPL LICENSE BLOCK *****
+#
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ***** END GPL LICENCE BLOCK *****
+
+# -----------------------------------------------------------------------
+# Author: Alan Odom (Clockmender), Rune Morling (ermo) Copyright (c) 2019
+# -----------------------------------------------------------------------
+#
+# Exceptions are used in the absence of nullable types in python
+
+
+class SelectionError(Exception):
+ """Selection Error Exception."""
+ pass
+
+
+class InvalidVector(Exception):
+ """Invalid Vector Exception."""
+ pass
+
+
+class CommandFailure(Exception):
+ """Command Failure Exception."""
+ pass
+
+
+class ObjectModeError(Exception):
+ """Object Mode Error Exception."""
+ pass
+
+
+class MathsError(Exception):
+ """Mathematical Expression Error Exception."""
+ pass
+
+
+class InfRadius(Exception):
+ """Infinite Radius Error Exception."""
+ pass
+
+
+class NoObjectError(Exception):
+ """No Active Object Exception."""
+ pass
+
+
+class IntersectionError(Exception):
+ """Failure to Find Intersect Exception."""
+ pass
+
+
+class InvalidOperation(Exception):
+ """Invalid Operation Error Exception."""
+ pass
+
+
+class VerticesConnected(Exception):
+ """Vertices Already Connected Exception."""
+ pass
+
+
+class InvalidAngle(Exception):
+ """Angle Given was Outside Parameters Exception."""
+ pass
+
+class ShaderError(Exception):
+ """GL Shader Error Exception."""
+ pass