Teuchos::m_bad_cast Class Reference

Exception class for bad cast. More...

#include <Teuchos_dyn_cast.hpp>

List of all members.

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

Detailed Description

Exception class for bad cast.

We create this class so that we may throw a bad_cast when appropriate and still use the TEST_FOR_EXCEPTION macro. We recommend users try to catch a bad_cast.

Definition at line 47 of file Teuchos_dyn_cast.hpp.


Constructor & Destructor Documentation

Teuchos::m_bad_cast::m_bad_cast ( const std::string &  what_arg  )  [inline, explicit]

Definition at line 50 of file Teuchos_dyn_cast.hpp.

virtual Teuchos::m_bad_cast::~m_bad_cast (  )  throw () [inline, virtual]

Definition at line 51 of file Teuchos_dyn_cast.hpp.


Member Function Documentation

virtual const char* Teuchos::m_bad_cast::what (  )  const throw () [inline, virtual]

Definition at line 52 of file Teuchos_dyn_cast.hpp.


Member Data Documentation

std::string Teuchos::m_bad_cast::msg [private]

Definition at line 48 of file Teuchos_dyn_cast.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 09:57:37 2011 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.3