eval::bad_val_cast Class Reference

#include <val.hpp>

Inheritance diagram for eval::bad_val_cast:

Inheritance graph
Collaboration diagram for eval::bad_val_cast:

Collaboration graph

List of all members.

Public Member Functions

 bad_val_cast (const std::string &type_from, const std::string &type_to)
virtual const char * what () const throw ()
virtual ~bad_val_cast () throw ()

Private Attributes

std::string _err

Detailed Description

Exception thrown when one attempts to extract the underlying value from an eval::val, but the type specified does not match the actual type.
The exception's text is implementation defined. The text serves just to help debugging; at runtime, type info can be extracted by calling val::type() and val::is_const() (so this exception is preventable).
See also:




Constructor & Destructor Documentation

eval::bad_val_cast::bad_val_cast ( const std::string &  type_from,
const std::string &  type_to 
) [inline]

virtual eval::bad_val_cast::~bad_val_cast (  )  throw () [inline, virtual]

Member Function Documentation

virtual const char* eval::bad_val_cast::what (  )  const throw () [inline, virtual]

Member Data Documentation

std::string eval::bad_val_cast::_err [private]

The documentation for this class was generated from the following file:

Generated on Sat Sep 20 20:02:34 2008 for eval by  doxygen 1.5.6