#include <fc/io/datastream.hpp>
#include <fc/exception/exception.hpp>

NO_RETURN void fc::detail::throw_datastream_range_error(char const* method, size_t len, int64_t over)
{
   assert(false);
  FC_THROW_EXCEPTION( out_of_range_exception, "${method} datastream of length ${len} over by ${over}", ("method",fc::string(method))("len",len)("over",over) );
}
