xlnt/source/custom_exceptions.cpp

24 lines
568 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)
{
}
bad_cell_coordinates::bad_cell_coordinates(int row, int column)
: std::runtime_error(std::string("bad cell coordinates: (") + std::to_string(row) + "," + std::to_string(column) + ")")
{
}
bad_cell_coordinates::bad_cell_coordinates(const std::string &coord_string)
: std::runtime_error(std::string("bad cell coordinates: (") + coord_string + ")")
{
}
} // namespace xlnt