charon-core
0.3.1
|
Plugin Exception class. More...
#include <charon-core/AbstractPluginLoader.h>
Public Types | |
enum | ErrorCode { FILE_NOT_FOUND = 1, FILE_DAMAGED = 2, INVALID_PLUGIN_FORMAT = 3, ALREADY_LOADED = 4, PLUGIN_NOT_LOADED = 5, NO_SUCH_INSTANCE = 6, DUPLICATE_INSTANCE_NAME = 7, INCOMPATIBLE_BUILD_TYPE = 8, VERSION_INFORMATION_MISSING = 9, VERSION_MISSMATCH = 10, OTHER = 0 } |
Error Reason Enum. More... | |
Public Member Functions | |
PluginException (const std::string &message, const std::string &pluginName="", ErrorCode err=OTHER) | |
Constructor. More... | |
virtual | ~PluginException () throw () |
Destructor. | |
ErrorCode | getErrorCode () const |
Plugin Exception Error Code. More... | |
const std::string & | getPluginName () const |
Get Plugin Name. More... | |
Private Attributes | |
ErrorCode | _err |
Saves the reason of the error. | |
std::string | _nameOfPlugin |
Name of the plugin causing the error. | |
Provides information about the reason of the error
Definition at line 67 of file AbstractPluginLoader.h.
Definition at line 70 of file AbstractPluginLoader.h.
AbstractPluginLoader::PluginException::PluginException | ( | const std::string & | message, |
const std::string & | pluginName = "" , |
||
ErrorCode | err = OTHER |
||
) |
message | Exception message |
pluginName | Name of the plugin causing the exception |
err | Reason of the exception |
Definition at line 67 of file AbstractPluginLoader.cpp.
AbstractPluginLoader::PluginException::ErrorCode AbstractPluginLoader::PluginException::getErrorCode | ( | ) | const |
Definition at line 77 of file AbstractPluginLoader.cpp.
const std::string & AbstractPluginLoader::PluginException::getPluginName | ( | ) | const |
Definition at line 72 of file AbstractPluginLoader.cpp.