xlnt/source/custom_exceptions.cpp

24 lines
592 B
C++
Raw Normal View History

2014-05-21 22:20:30 +08:00
#include "custom_exceptions.h"
2014-05-22 05:48:51 +08:00
namespace xlnt {
bad_sheet_title::bad_sheet_title(const std::string &title)
: std::runtime_error(std::string("bad worksheet title: ") + title)
{
}
2014-05-31 06:42:25 +08:00
cell_coordinates_exception::cell_coordinates_exception(int row, int column)
2014-05-22 05:48:51 +08:00
: std::runtime_error(std::string("bad cell coordinates: (") + std::to_string(row) + "," + std::to_string(column) + ")")
{
}
2014-05-31 06:42:25 +08:00
cell_coordinates_exception::cell_coordinates_exception(const std::string &coord_string)
2014-05-22 05:48:51 +08:00
: std::runtime_error(std::string("bad cell coordinates: (") + coord_string + ")")
{
}
} // namespace xlnt