42 #include "IterationPack_cast_iq.hpp"
43 #include "Teuchos_Assert.hpp"
45 void IterationPack::imp_cast_iq_throw_error(
46 const std::string& iq_name
47 ,
const std::string& iq_is_type_name
48 ,
const std::string& iq_want_type_name
53 ,
"cast_id<T>(state,iq_name) : Error, the iteration quantity \'"
54 << iq_name <<
"\' exists with type \'" << iq_is_type_name <<
"\' but does not "
55 <<
"support the \'IterQuantityAccess<" << iq_want_type_name <<
">\' interface" );
58 void IterationPack::imp_cast_iq_throw_error(
59 const AlgorithmState::iq_id_type iq_id
60 ,
const std::string& iq_name
61 ,
const std::string& iq_is_type_name
62 ,
const std::string& iq_want_type_name
67 ,
"cast_id<T>(state,iq_id,iq_name) : Error, the iteration quantity \'"
68 << iq_name <<
"\' with iq_id = \'" << iq_id
69 <<
"\' exists with type \'" << iq_is_type_name <<
"\' but does not "
70 <<
"support the \'IterQuantityAccess<" << iq_want_type_name <<
">\' interface" );
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)