141 self._errorMessage = \ |
141 self._errorMessage = \ |
142 QApplication.translate( |
142 QApplication.translate( |
143 "PluginError", |
143 "PluginError", |
144 "The plugin class {0} of module {1} is missing {2}.")\ |
144 "The plugin class {0} of module {1} is missing {2}.")\ |
145 .format(class_, name, missing) |
145 .format(class_, name, missing) |
|
146 |
|
147 |
|
148 class PluginPy2IncompatibleError(PluginError): |
|
149 """ |
|
150 Class defining an error raised, when the plugin is incompatible |
|
151 with Python2. |
|
152 """ |
|
153 def __init__(self, name): |
|
154 """ |
|
155 Constructor |
|
156 |
|
157 @param name name of the plugin module (string) |
|
158 """ |
|
159 self._errorMessage = \ |
|
160 QApplication.translate( |
|
161 "PluginError", |
|
162 "The plugin module {0} is not compatible with Python2.")\ |
|
163 .format(name) |