void BTree::AddKey (const Clave &k)
{
uint left, right;
- Clave *kout = AddKeyR (k.Clone (), 0, left, right);
+ Clave *kout;
+
+ try {
+ kout = AddKeyR (k.Clone (), 0, left, right);
+ } catch (Exception *e) {
+ throw e;
+ }
if (kout) {
unsigned short level;
if (!km.Size() // si no tenemos claves agregadas, mejor que hagamos un alta
|| l >= paltas) {
tree.AddKey (c);
+ try {
+ tree.AddKey (c);
+ } catch (Exception *e) {
+ std::cout << e->Message () << std::endl;
+ }
km.AddValue (*it);
it++;
} else {