PluginManager/PluginExceptions.py

branch
Py2 comp.
changeset 3520
bfcefbb1633c
parent 3178
f25fc1364c88
child 3591
2f2a4a76dd22
equal deleted inserted replaced
3515:1b8381afe38f 3520:bfcefbb1633c
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)

eric ide

mercurial