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