diff options
Diffstat (limited to 'include/cppunit/plugin')
| -rw-r--r-- | include/cppunit/plugin/DynamicLibraryManager.h | 10 | ||||
| -rw-r--r-- | include/cppunit/plugin/DynamicLibraryManagerException.h | 11 |
2 files changed, 16 insertions, 5 deletions
diff --git a/include/cppunit/plugin/DynamicLibraryManager.h b/include/cppunit/plugin/DynamicLibraryManager.h index 2a95f30..3b4f30b 100644 --- a/include/cppunit/plugin/DynamicLibraryManager.h +++ b/include/cppunit/plugin/DynamicLibraryManager.h @@ -92,6 +92,16 @@ private: */ Symbol doFindSymbol( const std::string &symbol ); + /*! Returns detailed information about doLoadLibrary() failure. + * + * Called just after a failed call to doLoadLibrary() to get extra + * error information. + * + * \return Detailed information about the failure of the call to + * doLoadLibrary() that just failed. + */ + std::string getLastErrorDetail() const; + /// Prevents the use of the copy constructor. DynamicLibraryManager( const DynamicLibraryManager © ); diff --git a/include/cppunit/plugin/DynamicLibraryManagerException.h b/include/cppunit/plugin/DynamicLibraryManagerException.h index 260df21..e0a1283 100644 --- a/include/cppunit/plugin/DynamicLibraryManagerException.h +++ b/include/cppunit/plugin/DynamicLibraryManagerException.h @@ -27,16 +27,17 @@ public: symbolNotFound }; - /// Failed to load the dynamic library - DynamicLibraryManagerException( const std::string &libraryName ); - - /// Symbol not found in the dynamic library + /// Failed to load the dynamic library or Symbol not found in the dynamic library. DynamicLibraryManagerException( const std::string &libraryName, - const std::string &symbol ); + const std::string &errorDetail, + Cause cause ); Cause getCause() const; + const char *what() const throw(); + private: + std::string m_message; Cause m_cause; }; |
