+#include <msp/core/maputils.h>
#include "armature.h"
using namespace std;
for(list<Link>::const_iterator i=links.begin(); i!=links.end(); ++i)
if(i->get_index()==index)
return *i;
- throw invalid_argument("Armature::get_link");
+ throw key_error(typeid(list<Link>));
}
const Armature::Link &Armature::get_link(const string &name) const
for(list<Link>::const_iterator i=links.begin(); i!=links.end(); ++i)
if(i->get_name()==name)
return *i;
- throw invalid_argument("Armature::get_link");
+ throw key_error(typeid(list<Link>));
}
unsigned Armature::get_max_link_index() const