Throw all exceptions with Arbutils exception.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace ArbUt {
|
||||
if (index >= _vector.size()) {
|
||||
std::stringstream ss;
|
||||
ss << "Index " << index << " is out of bounds.";
|
||||
throw std::logic_error(ss.str());
|
||||
throw ArbUt::Exception(ss.str());
|
||||
}
|
||||
#endif
|
||||
return _vector[index];
|
||||
@@ -61,7 +61,7 @@ namespace ArbUt {
|
||||
if (index >= _vector.size()) {
|
||||
std::stringstream ss;
|
||||
ss << "Index " << index << " is out of bounds.";
|
||||
throw std::logic_error(ss.str());
|
||||
throw ArbUt::Exception(ss.str());
|
||||
}
|
||||
#endif
|
||||
delete _vector[index];
|
||||
|
||||
Reference in New Issue
Block a user