2015-11-03 08:38:09 -05:00
|
|
|
#include <xlnt/utils/exceptions.hpp>
|
2014-05-21 17:48:51 -04:00
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
2014-06-05 16:19:31 -04:00
|
|
|
sheet_title_exception::sheet_title_exception(const std::string &title)
|
2014-05-21 17:48:51 -04:00
|
|
|
: std::runtime_error(std::string("bad worksheet title: ") + title)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-11-01 09:43:01 -05:00
|
|
|
column_string_index_exception::column_string_index_exception() : std::runtime_error("")
|
2014-06-05 17:42:15 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-11-01 09:43:01 -05:00
|
|
|
data_type_exception::data_type_exception() : std::runtime_error("")
|
2014-06-05 17:42:15 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-11-01 09:43:01 -05:00
|
|
|
attribute_error::attribute_error() : std::runtime_error("")
|
2015-10-13 13:56:07 -04:00
|
|
|
{
|
|
|
|
}
|
2015-11-01 09:43:01 -05:00
|
|
|
|
2014-07-23 16:00:09 -04:00
|
|
|
named_range_exception::named_range_exception()
|
|
|
|
: std::runtime_error("named range not found or not owned by this worksheet")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-07-19 16:59:05 -04:00
|
|
|
invalid_file_exception::invalid_file_exception(const std::string &filename)
|
|
|
|
: std::runtime_error(std::string("couldn't open file: (") + filename + ")")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-11-03 14:53:48 -05:00
|
|
|
cell_coordinates_exception::cell_coordinates_exception(column_t column, row_t row)
|
|
|
|
: std::runtime_error(std::string("bad cell coordinates: (") + std::to_string(column.index) + ", " + std::to_string(row) +
|
2015-11-01 09:43:01 -05:00
|
|
|
")")
|
2014-05-21 17:48:51 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-05-30 18:42:25 -04:00
|
|
|
cell_coordinates_exception::cell_coordinates_exception(const std::string &coord_string)
|
2015-11-03 14:53:48 -05:00
|
|
|
: std::runtime_error(std::string("bad cell coordinates: (") + (coord_string.empty() ? "<empty>" : coord_string) + ")")
|
2014-05-21 17:48:51 -04:00
|
|
|
{
|
2015-10-13 13:56:07 -04:00
|
|
|
}
|
2015-11-01 09:43:01 -05:00
|
|
|
|
2015-10-13 13:56:07 -04:00
|
|
|
illegal_character_error::illegal_character_error(char c)
|
|
|
|
: std::runtime_error(std::string("illegal character: (") + std::to_string(static_cast<unsigned char>(c)) + ")")
|
|
|
|
{
|
2014-05-21 17:48:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace xlnt
|