Fawkes API
Fawkes Development Version
|
This exception is thrown if the requested plugin could not be loaded. More...
#include <>>
Public Member Functions | |
PluginLoadException (const char *plugin, const char *message) | |
Constructor. More... | |
PluginLoadException (const char *plugin, const char *message, Exception &e) | |
Constructor. More... | |
~PluginLoadException () throw () | |
Destructor. More... | |
std::string | plugin_name () const |
Get name of plugin which failed to load. More... | |
![]() | |
Exception (const char *format,...) throw () | |
Constructor. More... | |
Exception (int errnoval, const char *format,...) throw () | |
Constructor. More... | |
Exception (const Exception &exc) throw () | |
Copy constructor. More... | |
virtual | ~Exception () throw () |
Destructor. More... | |
virtual void | raise () |
This can be used to throw this exception. More... | |
void | prepend (const char *format,...) throw () |
Prepend messages to the message list. More... | |
void | append (const char *format,...) throw () |
Append messages to the message list. More... | |
void | append_va (const char *format, va_list va) throw () |
Append messages to the message list. More... | |
void | append (const Exception &e) throw () |
Append message that are from another Exception. More... | |
void | print_trace () throw () |
Prints trace to stderr. More... | |
void | print_backtrace () const throw () |
Prints a backtrace. More... | |
char * | generate_backtrace () const throw () |
Generate backtrace string. More... | |
int | get_errno () throw () |
Get errno. More... | |
void | set_type_id (const char *id) |
Set exception type ID. More... | |
const char * | type_id () const |
Get type ID. More... | |
virtual const char * | what () const throw () |
Get primary string. More... | |
virtual const char * | what_no_backtrace () const throw () |
Get primary string (does not implicitly print the back trace). More... | |
Exception & | operator= (const Exception &exc) throw () |
Assign an Exception. More... | |
iterator | begin () throw () |
Get iterator for messages. More... | |
iterator | end () throw () |
Get end iterator for messages. More... | |
Additional Inherited Members | |
![]() | |
Exception () throw () | |
Constructor for subclasses. More... | |
void | append_nolock (const char *format,...) throw () |
Append messages without lock. More... | |
void | append_nolock_va (const char *format, va_list va) throw () |
Append messages without lock by formatted string. More... | |
void | append_nolock_nocopy (char *msg) throw () |
Append message without copying. More... | |
void | prepend_nolock_va (const char *format, va_list va) throw () |
Prepend messages without lock by formatted string. More... | |
void | copy_messages (const Exception &exc) throw () |
Copy messages from given exception. More... | |
![]() | |
message_list_t * | messages |
List of messages. More... | |
message_list_t * | messages_iterator |
Iterator to iterate over messages. More... | |
message_list_t * | messages_end |
Pointer that points to the very last message. More... | |
Mutex * | messages_mutex |
Mutex to protect operations on messages list. More... | |
int | _errno |
Error number, should be used if the error was caused by a method that supplies errno. More... | |
This exception is thrown if the requested plugin could not be loaded.
fawkes::PluginLoadException::PluginLoadException | ( | const char * | plugin, |
const char * | message | ||
) |
Constructor.
plugin | name of the plugin that caused the exception |
message | message of exception |
Definition at line 64 of file loader.cpp.
References fawkes::Exception::append().
fawkes::PluginLoadException::PluginLoadException | ( | const char * | plugin, |
const char * | message, | ||
Exception & | e | ||
) |
Constructor.
plugin | name of the plugin that caused the exception |
message | message of exception |
e | exception to copy further messages from |
Definition at line 81 of file loader.cpp.
References fawkes::Exception::append(), and fawkes::Exception::copy_messages().
fawkes::PluginLoadException::~PluginLoadException | ( | ) | ||
throw | ( | |||
) |
Destructor.
Definition at line 72 of file loader.cpp.
std::string fawkes::PluginLoadException::plugin_name | ( | ) | const |
Get name of plugin which failed to load.
Definition at line 93 of file loader.cpp.
Referenced by fawkes::FawkesMainThread::once().