#include "cl_DS.h"
#include "cln/io.h"
#include "cln/integer_io.h"
-#include "cln/abort.h"
+#include "cln/exception.h"
+#include <sstream>
namespace cln {
#undef IF_LENGTH
}
bad: // unpassendes Objekt
- fprint(std::cerr, "Not a 64-bit integer: ");
- fprint(std::cerr, obj);
- fprint(std::cerr, "\n");
- cl_abort();
+ std::ostringstream buf;
+ fprint(buf, "Not a 64-bit integer: ");
+ fprint(buf, obj);
+ throw runtime_exception(buf.str());
}
} // namespace cln