A Plugin is supposed to raise an exception of type PluginException
PluginException
code (int) – error code (see ErrorType to get the list of valid error codes)
ErrorType
modulename (str, optional) – module in which the exception is raised
message (str, optional) – error message
file (str, optional) – file in which the exception is raised
line (int, optional) – line index