Add msgpack prefix to type_errors

This commit is contained in:
Nobuyuki Kubota
2015-03-10 20:59:34 +09:00
parent 4b0c90fc90
commit b0ff2802d2
27 changed files with 142 additions and 142 deletions

View File

@@ -41,7 +41,7 @@ inline msgpack::object const& operator>> (msgpack::object const& o, float& v)
v = static_cast<float>(o.via.i64);
}
else {
throw type_error();
throw msgpack::type_error();
}
return o;
}
@@ -66,7 +66,7 @@ inline msgpack::object const& operator>> (msgpack::object const& o, double& v)
v = static_cast<double>(o.via.i64);
}
else {
throw type_error();
throw msgpack::type_error();
}
return o;
}