PluginManager/PluginExceptions.py

branch
Py2 comp.
changeset 3520
bfcefbb1633c
parent 3178
f25fc1364c88
child 3591
2f2a4a76dd22
--- a/PluginManager/PluginExceptions.py	Tue Apr 15 22:41:08 2014 +0200
+++ b/PluginManager/PluginExceptions.py	Sun Apr 20 16:37:34 2014 +0200
@@ -143,3 +143,21 @@
                 "PluginError",
                 "The plugin class {0} of module {1} is missing {2}.")\
             .format(class_, name, missing)
+
+
+class PluginPy2IncompatibleError(PluginError):
+    """
+    Class defining an error raised, when the plugin is incompatible
+    with Python2.
+    """
+    def __init__(self, name):
+        """
+        Constructor
+        
+        @param name name of the plugin module (string)
+        """
+        self._errorMessage = \
+            QApplication.translate(
+                "PluginError",
+                "The plugin module {0} is not compatible with Python2.")\
+            .format(name)

eric ide

mercurial