Show actual length when logging out of bounds errors on lists.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6ef9a6d67b
commit
fe523f6c0d
|
@ -35,7 +35,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,7 +49,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -64,7 +64,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -48,7 +48,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -86,7 +86,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -92,7 +92,7 @@ namespace ArbUt {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size()) {
|
if (index >= _vector.size()) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "Index " << index << " is out of bounds.";
|
ss << "Index " << index << " is out of bounds for length: " << _vector.size();
|
||||||
throw ArbUt::Exception(ss.str());
|
throw ArbUt::Exception(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue