src/eric7/PluginManager/PluginExceptions.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/PluginManager/PluginExceptions.py
--- a/src/eric7/PluginManager/PluginExceptions.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/PluginManager/PluginExceptions.py	Wed Jul 13 14:55:47 2022 +0200
@@ -14,25 +14,27 @@
     """
     Class defining a special error for the plugin classes.
     """
+
     def __init__(self):
         """
         Constructor
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError", "Unspecific plugin error.")
-        
+            "PluginError", "Unspecific plugin error."
+        )
+
     def __repr__(self):
         """
         Special method returning a representation of the exception.
-        
+
         @return string representing the error message
         """
         return str(self._errorMessage)
-        
+
     def __str__(self):
         """
         Special method returning a string representation of the exception.
-        
+
         @return string representing the error message
         """
         return str(self._errorMessage)
@@ -43,30 +45,33 @@
     Class defining an error raised, when the plugin paths were not found and
     could not be created.
     """
+
     def __init__(self, msg=None):
         """
         Constructor
-        
+
         @param msg message to be used by the exception (string)
         """
         if msg:
             self._errorMessage = msg
         else:
             self._errorMessage = QCoreApplication.translate(
-                "PluginError",
-                "Plugin paths not found or not creatable.")
+                "PluginError", "Plugin paths not found or not creatable."
+            )
 
 
 class PluginModulesError(PluginError):
     """
     Class defining an error raised, when no plugin modules were found.
     """
+
     def __init__(self):
         """
         Constructor
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError", "No plugin modules found.")
+            "PluginError", "No plugin modules found."
+        )
 
 
 class PluginLoadError(PluginError):
@@ -74,15 +79,15 @@
     Class defining an error raised, when there was an error during plugin
     loading.
     """
+
     def __init__(self, name):
         """
         Constructor
-        
+
         @param name name of the plugin module (string)
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError",
-            "Error loading plugin module: {0}"
+            "PluginError", "Error loading plugin module: {0}"
         ).format(name)
 
 
@@ -91,15 +96,15 @@
     Class defining an error raised, when there was an error during plugin
     activation.
     """
+
     def __init__(self, name):
         """
         Constructor
-        
+
         @param name name of the plugin module (string)
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError",
-            "Error activating plugin module: {0}"
+            "PluginError", "Error activating plugin module: {0}"
         ).format(name)
 
 
@@ -107,16 +112,16 @@
     """
     Class defining an error raised, when the plugin module is invalid.
     """
+
     def __init__(self, name, missing):
         """
         Constructor
-        
+
         @param name name of the plugin module (string)
         @param missing description of the missing element (string)
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError",
-            "The plugin module {0} is missing {1}."
+            "PluginError", "The plugin module {0} is missing {1}."
         ).format(name, missing)
 
 
@@ -124,16 +129,16 @@
     """
     Class defining an error raised, when the plugin module's class is invalid.
     """
+
     def __init__(self, name, class_, missing):
         """
         Constructor
-        
+
         @param name name of the plugin module (string)
         @param class_ name of the class not satisfying the requirements
             (string)
         @param missing description of the missing element (string)
         """
         self._errorMessage = QCoreApplication.translate(
-            "PluginError",
-            "The plugin class {0} of module {1} is missing {2}."
+            "PluginError", "The plugin class {0} of module {1} is missing {2}."
         ).format(class_, name, missing)

eric ide

mercurial