69 QApplication.translate("PluginError", "No plugin modules found.") |
69 QApplication.translate("PluginError", "No plugin modules found.") |
70 |
70 |
71 |
71 |
72 class PluginLoadError(PluginError): |
72 class PluginLoadError(PluginError): |
73 """ |
73 """ |
74 Class defining an error raised, when there was an error during plugin loading. |
74 Class defining an error raised, when there was an error during plugin |
|
75 loading. |
75 """ |
76 """ |
76 def __init__(self, name): |
77 def __init__(self, name): |
77 """ |
78 """ |
78 Constructor |
79 Constructor |
79 |
80 |
80 @param name name of the plugin module (string) |
81 @param name name of the plugin module (string) |
81 """ |
82 """ |
82 self._errorMessage = \ |
83 self._errorMessage = \ |
83 QApplication.translate("PluginError", "Error loading plugin module: {0}")\ |
84 QApplication.translate( |
84 .format(name) |
85 "PluginError", |
|
86 "Error loading plugin module: {0}")\ |
|
87 .format(name) |
85 |
88 |
86 |
89 |
87 class PluginActivationError(PluginError): |
90 class PluginActivationError(PluginError): |
88 """ |
91 """ |
89 Class defining an error raised, when there was an error during plugin activation. |
92 Class defining an error raised, when there was an error during plugin |
|
93 activation. |
90 """ |
94 """ |
91 def __init__(self, name): |
95 def __init__(self, name): |
92 """ |
96 """ |
93 Constructor |
97 Constructor |
94 |
98 |
95 @param name name of the plugin module (string) |
99 @param name name of the plugin module (string) |
96 """ |
100 """ |
97 self._errorMessage = \ |
101 self._errorMessage = \ |
98 QApplication.translate("PluginError", "Error activating plugin module: {0}")\ |
102 QApplication.translate( |
99 .format(name) |
103 "PluginError", |
|
104 "Error activating plugin module: {0}")\ |
|
105 .format(name) |
100 |
106 |
101 |
107 |
102 class PluginModuleFormatError(PluginError): |
108 class PluginModuleFormatError(PluginError): |
103 """ |
109 """ |
104 Class defining an error raised, when the plugin module is invalid. |
110 Class defining an error raised, when the plugin module is invalid. |
109 |
115 |
110 @param name name of the plugin module (string) |
116 @param name name of the plugin module (string) |
111 @param missing description of the missing element (string) |
117 @param missing description of the missing element (string) |
112 """ |
118 """ |
113 self._errorMessage = \ |
119 self._errorMessage = \ |
114 QApplication.translate("PluginError", |
120 QApplication.translate( |
115 "The plugin module {0} is missing {1}.")\ |
121 "PluginError", |
116 .format(name, missing) |
122 "The plugin module {0} is missing {1}.")\ |
|
123 .format(name, missing) |
117 |
124 |
118 |
125 |
119 class PluginClassFormatError(PluginError): |
126 class PluginClassFormatError(PluginError): |
120 """ |
127 """ |
121 Class defining an error raised, when the plugin module's class is invalid. |
128 Class defining an error raised, when the plugin module's class is invalid. |
123 def __init__(self, name, class_, missing): |
130 def __init__(self, name, class_, missing): |
124 """ |
131 """ |
125 Constructor |
132 Constructor |
126 |
133 |
127 @param name name of the plugin module (string) |
134 @param name name of the plugin module (string) |
128 @param class_ name of the class not satisfying the requirements (string) |
135 @param class_ name of the class not satisfying the requirements |
|
136 (string) |
129 @param missing description of the missing element (string) |
137 @param missing description of the missing element (string) |
130 """ |
138 """ |
131 self._errorMessage = \ |
139 self._errorMessage = \ |
132 QApplication.translate("PluginError", |
140 QApplication.translate( |
133 "The plugin class {0} of module {1} is missing {2}.")\ |
141 "PluginError", |
134 .format(class_, name, missing) |
142 "The plugin class {0} of module {1} is missing {2}.")\ |
|
143 .format(class_, name, missing) |