Fennel: BTreeDuplicateKeyExcn Class Reference (original) (raw)

Constructs a new BTreeDuplicateKeyExcn.

TODO: take more information to get a better key description

Parameters:

keyDescriptor TupleDescriptor for the BTree's key
keyData data for the duplicate key

Definition at line 35 of file BTreeDuplicateKeyExcn.cpp.

References FennelExcn::msg, and TuplePrinter::print().

00038 : FennelExcn("") 00039 { 00040 std::ostringstream oss; 00041 // TODO: nicer formatting 00042 TuplePrinter tuplePrinter; 00043 tuplePrinter.print(oss,keyDescriptor,keyData); 00044 msg = oss.str(); 00045 msg = FennelResource::instance().duplicateKeyDetected(msg); 00046 }