|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Exception class for bad cast. More...
#include <Teuchos_dyn_cast.hpp>
Public Member Functions | |
| m_bad_cast (const std::string &what_arg) | |
| virtual | ~m_bad_cast () throw () |
| virtual const char * | what () const throw () |
Private Attributes | |
| std::string | msg |
Exception class for bad cast.
We create this class so that we may throw a bad_cast when appropriate and still use the TEUCHOS_TEST_FOR_EXCEPTION macro. We recommend users try to catch a bad_cast.
Definition at line 60 of file Teuchos_dyn_cast.hpp.
| Teuchos::m_bad_cast::m_bad_cast | ( | const std::string & | what_arg | ) | [inline, explicit] |
Definition at line 63 of file Teuchos_dyn_cast.hpp.
| virtual Teuchos::m_bad_cast::~m_bad_cast | ( | ) | throw () [inline, virtual] |
Definition at line 64 of file Teuchos_dyn_cast.hpp.
| virtual const char* Teuchos::m_bad_cast::what | ( | ) | const throw () [inline, virtual] |
Definition at line 65 of file Teuchos_dyn_cast.hpp.
std::string Teuchos::m_bad_cast::msg [private] |
Definition at line 61 of file Teuchos_dyn_cast.hpp.
1.7.6.1