|
Theoretica
Scientific Computing
|
A class for representing mathematical errors. More...
#include <error.h>
Inherits std::exception.
Public Member Functions | |
| const char * | what () const noexcept |
| Return a string describing the exception. | |
| MathError | err_code () const |
| Get the error code associated with the exception. | |
| std::string | get_function_name () const |
| Get the name of the throwing function. | |
| std::string | get_file_name () const |
| Get the name of the file in which the exception was thrown. | |
| unsigned int | get_line_number () const |
| Get the line number at which the exception was thrown. | |
| real | get_value () const |
| Get a real value associated with the exception. | |
| std::string | to_string () const |
| Get a string representation of the exception. | |
| operator std::string () | |
| Convert the exception to string representation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const math_exception &obj) |
| Stream the exception in string representation to an output stream (std::ostream) | |
A class for representing mathematical errors.