X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftable.cpp;h=936be5cc61b032bb4c94ca7622a54e138fd5dbbd;hb=c1faa54a3218b53757b8b55de0ff8aa64412253b;hp=4a74e17ba5edec6d2b4e5ac42e1e9d56d0948c7b;hpb=8352d5f2590cfcb09e92854be211399105408c4d;p=libs%2Fgltk.git diff --git a/source/table.cpp b/source/table.cpp index 4a74e17..936be5c 100644 --- a/source/table.cpp +++ b/source/table.cpp @@ -1,3 +1,4 @@ +#include #include #include #include "part.h" @@ -39,14 +40,14 @@ void Table::set_columns(unsigned c) 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; }