void load(T &obj, typename T::Loader::Collection &coll, const std::string &fn, Args &... args)
{
RefPtr<IO::Seekable> in = coll.open_raw(fn);
+ if(!in)
+ throw IO::file_not_found(fn);
Parser parser(*in, fn);
typename T::Loader loader(obj, coll, args...);
typename EnableIf<NeedsCollection<typename T::Loader>::value, void>::No load(T &obj, C &coll, const std::string &fn, Args &... args)
{
RefPtr<IO::Seekable> in = coll.open_raw(fn);
+ if(!in)
+ throw IO::file_not_found(fn);
Parser parser(*in, fn);
typename T::Loader loader(obj, args...);