vpr::LoaderError Class Reference

Error reporting class for dynamic library loading. More...

#include <vpr/DynLoad/LoaderError.h>

List of all members.

Public Types

enum  Code { FILE_LOAD_ERROR, SYM_LOOKUP_ERROR, FACTORY_EXEC_ERROR }
 Error codes that may be generated by a DSO loader. More...

Public Member Functions

 LoaderError (const std::string &who, const std::string &message)
 LoaderError (const std::string &who, const std::string &message, Code error)
 ~LoaderError () throw ()
Code error () const
const std::string & who () const

Protected Attributes

std::string mWho
Code mError


Detailed Description

Error reporting class for dynamic library loading.

Definition at line 55 of file LoaderError.h.


Member Enumeration Documentation

enum vpr::LoaderError::Code

Error codes that may be generated by a DSO loader.

Enumerator:
FILE_LOAD_ERROR  Error trying to load DSO file.
SYM_LOOKUP_ERROR  Error trying to look up symbol in DSO.
FACTORY_EXEC_ERROR  Error trying to execute factory function.

Definition at line 59 of file LoaderError.h.

00060    {
00061       FILE_LOAD_ERROR,    
00062       SYM_LOOKUP_ERROR,   
00063       FACTORY_EXEC_ERROR  
00064    };


Constructor & Destructor Documentation

vpr::LoaderError::LoaderError ( const std::string &  who,
const std::string &  message 
)

Definition at line 55 of file LoaderError.cpp.

00056    : std::runtime_error(errorPrep(w, msg)), mWho(w)
00057 {
00058 }

vpr::LoaderError::LoaderError ( const std::string &  who,
const std::string &  message,
Code  error 
)

Definition at line 60 of file LoaderError.cpp.

00062    : std::runtime_error(errorPrep(w, msg)), mWho(w), mError(e)
00063 {
00064 }

vpr::LoaderError::~LoaderError (  )  throw ()

Definition at line 66 of file LoaderError.cpp.

00067 {
00068    /* Do nothing. */ ;
00069 }


Member Function Documentation

Code vpr::LoaderError::error (  )  const [inline]

Definition at line 72 of file LoaderError.h.

00073    {
00074       return mError;
00075    }

const std::string& vpr::LoaderError::who (  )  const [inline]

Definition at line 77 of file LoaderError.h.

00078    {
00079       return mWho;
00080    }


Member Data Documentation

std::string vpr::LoaderError::mWho [protected]

Definition at line 83 of file LoaderError.h.

Code vpr::LoaderError::mError [protected]

Definition at line 84 of file LoaderError.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 4 10:55:04 2007 for VR Juggler Portable Runtime by  doxygen 1.5.1