3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
14 #include "support/debug.h"
15 #include "support/lyxlib.h"
17 #include <boost/assert.hpp>
27 void throw_exception(std::exception const & e)
29 lyx::lyxerr << "Exception caught:\n" << e.what() << endl;
34 void assertion_failed(char const * expr, char const * function,
35 char const * file, long line)
37 lyx::lyxerr << "Assertion triggered in " << function
38 << " by failing check \"" << expr << "\""
39 << " in file " << file << ":" << line << endl;
40 lyx::support::abort();