1 #ifndef CPPUNIT_PLUGIN_DYNAMICLIBRARYMANAGEREXCEPTION_H
2 #define CPPUNIT_PLUGIN_DYNAMICLIBRARYMANAGEREXCEPTION_H
4 #include <cppunit/Portability.h>
6 #if !defined(CPPUNIT_NO_TESTPLUGIN)
14 /*! \brief Exception thrown by DynamicLibraryManager when a failure occurs.
16 * Use getCause() to know what function caused the failure.
19 class DynamicLibraryManagerException : public std::runtime_error
24 /// Failed to load the dynamic library
26 /// Symbol not found in the dynamic library
30 /// Failed to load the dynamic library or Symbol not found in the dynamic library.
31 DynamicLibraryManagerException( const std::string &libraryName,
32 const std::string &errorDetail,
35 ~DynamicLibraryManagerException() throw()
39 Cause getCause() const;
41 const char *what() const throw();
44 std::string m_message;
51 #endif // !defined(CPPUNIT_NO_TESTPLUGIN)
53 #endif // CPPUNIT_PLUGIN_DYNAMICLIBRARYMANAGEREXCEPTION_H