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