MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / ThrowBadAnyCastException

Function ThrowBadAnyCastException

framework/src/util/Any.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 {
34
35 void
36 ThrowBadAnyCastException(std::string const& funcName,
37 std::type_info const& source,
38 std::type_info const& target)
39 {
40 std::string msg("cppmicroservices::BadAnyCastException: ");
41 std::string targetTypeName(GetDemangledName(target));
42 std::string sourceTypeName(GetDemangledName(source));
43 msg += funcName + ": Failed to convert from cppmicroservices::Any type " + sourceTypeName
44 + " to target type " + targetTypeName;
45 throw BadAnyCastException(msg);
46 }
47 } // namespace detail
48
49 std::ostream&

Callers 2

any_castFunction · 0.85
Any.hFile · 0.85

Calls 2

GetDemangledNameFunction · 0.85
BadAnyCastExceptionClass · 0.85

Tested by

no test coverage detected