eval::bad_val_cast Class Reference
#include <val.hpp>
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.
- Note:
- 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:
- val::val_cast_ptr()
execution_context::extended_val_cast_ptr()
- Examples:
-
val_example.cpp.
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
The documentation for this class was generated from the following file: