Replaced ThrowError with BOOST_THROW_EXCEPTION.
Replaced some missed ThrowError instances with BOOST_THROW_EXCEPTION.