Commit ca6f864e authored by snuverink_j's avatar snuverink_j
Browse files

fix function names in exceptions

parent cb7e7ce8
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include <boost/regex.hpp> #include <boost/regex.hpp>
using std::string;
using namespace Expressions; using namespace Expressions;
...@@ -75,7 +74,7 @@ namespace Attributes { ...@@ -75,7 +74,7 @@ namespace Attributes {
const SRefAttr<bool> &value = ref->evaluate(); const SRefAttr<bool> &value = ref->evaluate();
return value.evaluate(); return value.evaluate();
} else { } else {
throw OpalException("Attributes::get()", "Attribute \"" + throw OpalException("Attributes::getBool()", "Attribute \"" +
attr.getName() + "\" is not logical."); attr.getName() + "\" is not logical.");
} }
} else { } else {
...@@ -162,7 +161,7 @@ namespace Attributes { ...@@ -162,7 +161,7 @@ namespace Attributes {
if(dynamic_cast<const Place *>(&attr.getHandler())) { if(dynamic_cast<const Place *>(&attr.getHandler())) {
attr.set(new SValue<PlaceRep>(rep)); attr.set(new SValue<PlaceRep>(rep));
} else { } else {
throw OpalException("Attributes::getPlace()", "Attribute \"" + throw OpalException("Attributes::setPlace()", "Attribute \"" +
attr.getName() + "\" is not a place reference."); attr.getName() + "\" is not a place reference.");
} }
} }
...@@ -183,7 +182,7 @@ namespace Attributes { ...@@ -183,7 +182,7 @@ namespace Attributes {
dynamic_cast<SValue<RangeRep> *>(&attr.getBase())) { dynamic_cast<SValue<RangeRep> *>(&attr.getBase())) {
return range->evaluate(); return range->evaluate();
} else { } else {
throw OpalException("Attributes::get()", "Attribute \"" + throw OpalException("Attributes::getRange()", "Attribute \"" +
attr.getName() + "\" is not a range reference."); attr.getName() + "\" is not a range reference.");
} }
} else { } else {
...@@ -196,7 +195,7 @@ namespace Attributes { ...@@ -196,7 +195,7 @@ namespace Attributes {
if(dynamic_cast<const Range *>(&attr.getHandler())) { if(dynamic_cast<const Range *>(&attr.getHandler())) {
attr.set(new SValue<RangeRep>(rep)); attr.set(new SValue<RangeRep>(rep));
} else { } else {
throw OpalException("Attributes::get()", "Attribute \"" + throw OpalException("Attributes::setRange()", "Attribute \"" +
attr.getName() + "\" is not a range reference."); attr.getName() + "\" is not a range reference.");
} }
} }
...@@ -499,7 +498,7 @@ namespace Attributes { ...@@ -499,7 +498,7 @@ namespace Attributes {
dynamic_cast<SValue<TableRowRep> *>(&attr.getBase())) { dynamic_cast<SValue<TableRowRep> *>(&attr.getBase())) {
return row->evaluate(); return row->evaluate();
} else { } else {
throw OpalException("Attributes::get()", "Attribute \"" + throw OpalException("Attributes::getTableRow()", "Attribute \"" +
attr.getName() + attr.getName() +
"\" is not a table row reference."); "\" is not a table row reference.");
} }
...@@ -513,7 +512,7 @@ namespace Attributes { ...@@ -513,7 +512,7 @@ namespace Attributes {
if(dynamic_cast<const TableRow *>(&attr.getHandler())) { if(dynamic_cast<const TableRow *>(&attr.getHandler())) {
attr.set(new SValue<TableRowRep>(rep)); attr.set(new SValue<TableRowRep>(rep));
} else { } else {
throw OpalException("Attributes::get()", "Attribute \"" + throw OpalException("Attributes::setTableRow()", "Attribute \"" +
attr.getName() + attr.getName() +
"\" is not a table row reference."); "\" is not a table row reference.");
} }
...@@ -547,7 +546,7 @@ namespace Attributes { ...@@ -547,7 +546,7 @@ namespace Attributes {
if(dynamic_cast<const TokenList *>(&attr.getHandler())) { if(dynamic_cast<const TokenList *>(&attr.getHandler())) {
attr.set(new SValue<std::list<Token> >(val)); attr.set(new SValue<std::list<Token> >(val));
} else { } else {
throw OpalException("Attributes::set()", "Attribute \"" + attr.getName() + throw OpalException("Attributes::setTokenList()", "Attribute \"" + attr.getName() +
"\" is not a token list."); "\" is not a token list.");
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment