35 mutable std::string what_;
38 key_(key), formatter_(formatter) {}
40 Key key()
const {
return key_; }
41 const char* what()
const noexcept
override {
44 "\nRequested to marginalize out variable " + formatter_(key_) +
", but this variable\n\ 45 is not a leaf. To make the variables you would like to marginalize be leaves,\n\ 46 their ordering should be constrained using the constrainedKeys argument to\n\
Definition: nonlinearExceptions.h:32
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition: Key.h:35
Definition: chartTesting.h:28
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:102