#include <laexcp.h>
Inheritance diagram for LaException:
Public Member Functions | |
LaException () | |
LaException (const char *where, const char *what) | |
LaException (const char *assertion, const char *file, unsigned int line, const char *function) | |
Static Public Member Functions | |
static void | enablePrint (bool enable) |
General exception class for when an exceptions occurs inside Lapack++.
LaException::LaException | ( | ) |
Empty constructor.
LaException::LaException | ( | const char * | where, | |
const char * | what | |||
) |
Constructor with text information. The text can be retrieved by the what() method, i.e.
LaException e("myFunction()", "some error"); std::cout << e.what();
If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.
LaException::LaException | ( | const char * | assertion, | |
const char * | file, | |||
unsigned int | line, | |||
const char * | function | |||
) |
Constructor with more text information, similar to the assert(3) macro.
If the static flag LaException::enablePrint() is enabled, then this constructor also writes the given text to stderr.
static void LaException::enablePrint | ( | bool | enable | ) | [static] |
Static (i.e. library-wide) flag whether any new LaException should also print its message to stderr. Disabled by default.