Cleanups:

* Use Throw instead of directly throwing an exception
This commit is contained in:
Nik Bougalis
2016-01-26 13:42:55 -08:00
parent f13668371e
commit 57d6ab091c
2 changed files with 11 additions and 12 deletions

View File

@@ -448,7 +448,7 @@ void
SerialIter::skip (int length)
{
if (remain_ < length)
throw std::runtime_error(
Throw<std::runtime_error> (
"invalid SerialIter skip");
p_ += length;
used_ += length;