X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/f0a17b3d23f3f277957d3e97ac1c7c1869d6d4cc..a7320c2537350c61995bd6e3b132563e0c8ba86b:/src/btree.cpp diff --git a/src/btree.cpp b/src/btree.cpp index fff8278..ddcb14c 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -54,7 +54,13 @@ void BTree::WriteBlock (uchar *block, uint num) 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;