eric6/PluginManager/PluginExceptions.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7254:f00d825fbdb3 7255:d595f6f9cbf8
79 """ 79 """
80 Constructor 80 Constructor
81 81
82 @param name name of the plugin module (string) 82 @param name name of the plugin module (string)
83 """ 83 """
84 self._errorMessage = \ 84 self._errorMessage = QCoreApplication.translate(
85 QCoreApplication.translate( 85 "PluginError",
86 "PluginError", 86 "Error loading plugin module: {0}"
87 "Error loading plugin module: {0}")\ 87 ).format(name)
88 .format(name)
89 88
90 89
91 class PluginActivationError(PluginError): 90 class PluginActivationError(PluginError):
92 """ 91 """
93 Class defining an error raised, when there was an error during plugin 92 Class defining an error raised, when there was an error during plugin
97 """ 96 """
98 Constructor 97 Constructor
99 98
100 @param name name of the plugin module (string) 99 @param name name of the plugin module (string)
101 """ 100 """
102 self._errorMessage = \ 101 self._errorMessage = QCoreApplication.translate(
103 QCoreApplication.translate( 102 "PluginError",
104 "PluginError", 103 "Error activating plugin module: {0}"
105 "Error activating plugin module: {0}")\ 104 ).format(name)
106 .format(name)
107 105
108 106
109 class PluginModuleFormatError(PluginError): 107 class PluginModuleFormatError(PluginError):
110 """ 108 """
111 Class defining an error raised, when the plugin module is invalid. 109 Class defining an error raised, when the plugin module is invalid.
115 Constructor 113 Constructor
116 114
117 @param name name of the plugin module (string) 115 @param name name of the plugin module (string)
118 @param missing description of the missing element (string) 116 @param missing description of the missing element (string)
119 """ 117 """
120 self._errorMessage = \ 118 self._errorMessage = QCoreApplication.translate(
121 QCoreApplication.translate( 119 "PluginError",
122 "PluginError", 120 "The plugin module {0} is missing {1}."
123 "The plugin module {0} is missing {1}.")\ 121 ).format(name, missing)
124 .format(name, missing)
125 122
126 123
127 class PluginClassFormatError(PluginError): 124 class PluginClassFormatError(PluginError):
128 """ 125 """
129 Class defining an error raised, when the plugin module's class is invalid. 126 Class defining an error raised, when the plugin module's class is invalid.
135 @param name name of the plugin module (string) 132 @param name name of the plugin module (string)
136 @param class_ name of the class not satisfying the requirements 133 @param class_ name of the class not satisfying the requirements
137 (string) 134 (string)
138 @param missing description of the missing element (string) 135 @param missing description of the missing element (string)
139 """ 136 """
140 self._errorMessage = \ 137 self._errorMessage = QCoreApplication.translate(
141 QCoreApplication.translate( 138 "PluginError",
142 "PluginError", 139 "The plugin class {0} of module {1} is missing {2}."
143 "The plugin class {0} of module {1} is missing {2}.")\ 140 ).format(class_, name, missing)
144 .format(class_, name, missing)

eric ide

mercurial