Check for invalid value type.

This commit is contained in:
Gunnar Beutner 2013-03-09 12:57:26 +01:00
parent 84fcf24fa3
commit bac7495f49
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ Value::operator String(void) const
case ValueObject:
object = boost::get<Object::Ptr>(m_Value).get();
return "Object of type '" + Utility::GetTypeName(typeid(*object)) + "'";
default:
BOOST_THROW_EXCEPTION(runtime_error("Unknown value type."));
}
}