+#include <stdexcept>
#include <msp/gl/matrix.h>
#include <msp/gl/transform.h>
#include "part.h"
void Table::set_column_width(unsigned c, unsigned w)
{
if(c>=columns)
- throw InvalidParameterValue("Column index out of bounds");
+ throw invalid_argument("Table::set_column_width");
col_w[c] = w;
}
void Table::set_cell_text(unsigned r, unsigned c, const string &t)
{
if(r>=rows || c>=columns)
- throw InvalidParameterValue("Cell coordinates out of bounds");
+ throw out_of_range("Table::set_cell_text");
data[r*columns+c] = t;
}