model_context_error
Defined in header: <ixion/exceptions.hpp>
-
class model_context_error : public ixion::general_error
This exception is thrown typically from the ixion::model_context class.
Public Types
-
enum error_type
Kind of error.
Values:
-
enumerator invalid_named_expression
The name of a named expression is not valid.
-
enumerator sheet_name_conflict
A sheet by the same name already exists.
-
enumerator sheet_size_locked
The sheet size cannot be changed once a sheet exists.
-
enumerator table_name_conflict
A table by the same name already exists.
-
enumerator sheet_view_name_conflict
A view by the same name already exists on the sheet.
-
enumerator invalid_sheet_reference
A formula references a sheet that does not exist.
-
enumerator partial_formula_group
A write covers only part of a formula group.
-
enumerator loader_already_finalized
A model_context_loader got used after finalize().
-
enumerator loader_cell_not_empty
A model_context_loader got asked to write to a cell that is not empty.
-
enumerator invalid_named_expression
Public Functions
-
explicit model_context_error(std::string msg, error_type type)
Constructor.
- Parameters:
msg – Message describing the error.
type – Kind of error.
-
virtual ~model_context_error() override
-
error_type get_error_type() const
Get the kind of error.
-
enum error_type