formula_error
Defined in header: <ixion/exceptions.hpp>
-
class formula_error : public std::exception
Exception carrying a formula error value. The interpreter throws it while evaluating a formula, in which case the error value becomes the result of the formula cell, and the cell value accessors throw it when asked for a value the cell cannot provide, such as the numeric value of a formula cell in error or of a cell that has not been calculated yet.
Public Functions
-
explicit formula_error(formula_error_t fe)
Construct an exception with an error value and no message.
-
explicit formula_error(formula_error_t fe, std::string msg)
Construct an exception with an error value and a message.
-
formula_error(const formula_error &other)
Copy constructor.
-
formula_error(formula_error &&other)
Move constructor.
-
virtual ~formula_error()
-
virtual const char *what() const noexcept override
Get a description of the error. Without a message, it is the name of the error value, such as “#DIV/0!”. With a message, it is the message followed by the name of the error value in parentheses.
-
formula_error_t get_error() const
Get the error value.
-
explicit formula_error(formula_error_t fe)