25 #include <utility/excn/Exceptions.hh>
40 utility::pointer::ReferenceCountOP
42 basic::resource_manager::ResourceOptions
const & options,
43 basic::resource_manager::LocatorID
const & locator_id,
47 if ( ! dynamic_cast< ResidueLoaderOptions const * > ( &options ) ) {
48 throw utility::excn::EXCN_Msg_Exception(
"ResidueLoader expected to be given a ResidueLoaderOptions object, " \
49 "but was given a non-ResidueLoaderOptions object of type '" + options.type() +
"', which has the name '" + options.name() +
"'." );
61 return new_residue_type;