iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::exception::DynamicLoaderException Class Reference

#include <nrt/Core/Util/Exceptions.H>

Exception thrown by DynamicLoader.

Definition at line 48 of file Exceptions.H.

Inheritance diagram for nrt::exception::DynamicLoaderException:
nrt::exception::SerializableException nrt::exception::Exception

Public Types

enum  ErrorType { UnknownError = 0, FileNotFound = 1, SymbolNotFound = 2 }

Public Member Functions

 DynamicLoaderException () throw ()
 Construct from nothing - needed by serialization.
 DynamicLoaderException (std::string const &soName, std::string const &err) throw ()
 Create an exception caused by a missing .so file.
 DynamicLoaderException (std::string const &soName, std::string const &symbolName, std::string const &err) throw ()
 Create an exception caused by a missing symbol within a .so file.
std::string const & soName ()
 Returns the name of the offending shared object file.
std::string const & symbolName ()
std::string const & err ()
 Returns the error reported by dlload or dllopen.
ErrorType error ()
 Get the type of error.
- Public Member Functions inherited from nrt::exception::SerializableException
 SerializableException () throw ()
 Default constructor.
 SerializableException (char const *msg) throw ()
 Construct from a C string message.
 SerializableException (SerializableException const &e) throw ()
 Copy constructor.
virtual ~SerializableException () throw ()
SerializableExceptionoperator= (SerializableException const &e) throw ()
- Public Member Functions inherited from nrt::exception::Exception
 Exception () throw ()
 Constructor with a default non-specific error message.
 Exception (char const *msg) throw ()
 Constructor with a given error message. More...
 Exception (Exception const &e) throw ()
 Copy constructor.
virtual ~Exception () throw ()
 Virtual destructor for safe inheritance.
Exceptionoperator= (Exception const &e) throw ()
char const * what () const throw ()
 Return a C string describing the error. More...

Protected Member Functions

template<class Archive >
void serialize (Archive &ar)
- Protected Member Functions inherited from nrt::exception::SerializableException
template<class Archive >
void serialize (Archive &ar)


class cereal::access

Additional Inherited Members

- Protected Attributes inherited from nrt::exception::SerializableException
std::string whatstring
 The string representing the exception message.

Member Enumeration Documentation


Some unkown error occured.


The shared object file could not be found.


The requested symbol within a shared object could not be found.

Definition at line 51 of file Exceptions.H.

Member Function Documentation

std::string const& nrt::exception::DynamicLoaderException::symbolName ( )

Returns the name of the symbol that failed to load if this is a SymbolNotFound exception. Empty string otherwise.

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