Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::PluginLoadException Class Reference

This exception is thrown if the requested plugin could not be loaded. More...

#include <>>

Inheritance diagram for fawkes::PluginLoadException:

Public Member Functions

 PluginLoadException (const char *plugin, const char *message)
 Constructor.
 PluginLoadException (const char *plugin, const char *message, Exception &e)
 Constructor.
 ~PluginLoadException () throw ()
 Destructor.
std::string plugin_name () const
 Get name of plugin which failed to load.
- Public Member Functions inherited from fawkes::Exception
 Exception (const char *format,...) throw ()
 Constructor.
 Exception (int errno, const char *format,...) throw ()
 Constructor.
 Exception (const Exception &exc) throw ()
 Copy constructor.
virtual ~Exception () throw ()
 Destructor.
virtual void raise ()
 This can be used to throw this exception.
void prepend (const char *format,...) throw ()
 Prepend messages to the message list.
void append (const char *format,...) throw ()
 Append messages to the message list.
void append_va (const char *format, va_list va) throw ()
 Append messages to the message list.
void append (const Exception &e) throw ()
 Append message that are from another Exception.
void print_trace () throw ()
 Prints trace to stderr.
void print_backtrace () const throw ()
 Prints a backtrace.
char * generate_backtrace () const throw ()
 Generate backtrace string.
int get_errno () throw ()
 Get errno.
void set_type_id (const char *id)
 Set exception type ID.
const char * type_id () const
 Get type ID.
virtual const char * what () const throw ()
 Get primary string.
Exceptionoperator= (const Exception &exc) throw ()
 Assign an Exception.
iterator begin () throw ()
 Get iterator for messages.
iterator end () throw ()
 Get end iterator for messages.

Additional Inherited Members

- Protected Member Functions inherited from fawkes::Exception
 Exception () throw ()
 Constructor for subclasses.
void append_nolock (const char *format,...) throw ()
 Append messages without lock.
void append_nolock_va (const char *format, va_list va) throw ()
 Append messages without lock by formatted string.
void append_nolock_nocopy (char *msg) throw ()
 Append message without copying.
void prepend_nolock_va (const char *format, va_list va) throw ()
 Prepend messages without lock by formatted string.
void copy_messages (const Exception &exc) throw ()
 Copy messages from given exception.
- Protected Attributes inherited from fawkes::Exception
message_list_tmessages
 List of messages.
message_list_tmessages_iterator
 Iterator to iterate over messages.
message_list_tmessages_end
 Pointer that points to the very last message.
Mutexmessages_mutex
 Mutex to protect operations on messages list.
int _errno
 Error number, should be used if the error was caused by a method that supplies errno.

Detailed Description

This exception is thrown if the requested plugin could not be loaded.

Definition at line 41 of file loader.h.

Constructor & Destructor Documentation

fawkes::PluginLoadException::PluginLoadException ( const char *  plugin,
const char *  message 
)

Constructor.

Parameters
pluginname of the plugin that caused the exception
messagemessage of exception

Definition at line 55 of file loader.cpp.

References fawkes::Exception::append().

fawkes::PluginLoadException::PluginLoadException ( const char *  plugin,
const char *  message,
Exception e 
)

Constructor.

Parameters
pluginname of the plugin that caused the exception
messagemessage of exception
eexception to copy further messages from

Definition at line 72 of file loader.cpp.

References fawkes::Exception::append(), and fawkes::Exception::copy_messages().

fawkes::PluginLoadException::~PluginLoadException ( ) throw ()

Destructor.

Definition at line 63 of file loader.cpp.

Member Function Documentation

std::string fawkes::PluginLoadException::plugin_name ( ) const

Get name of plugin which failed to load.

Returns
plugin name

Definition at line 84 of file loader.cpp.

Referenced by fawkes::FawkesMainThread::once().


The documentation for this class was generated from the following files: